@bonnier-publications/prevent-img-rightclick

1.0.4 • Public • Published

Prevent Image Download

This plugin will disable the browsers context menu when right clicking images. A customizable message will be shown instead.

Example usage

const styles = {"padding":"12px", "font-size":"18px"};
const message = "Please do not download our images";
const prevent = new PreventImageDownload(message, styles);
prevent.init();

/@bonnier-publications/prevent-img-rightclick/

    Package Sidebar

    Install

    npm i @bonnier-publications/prevent-img-rightclick

    Weekly Downloads

    5

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • mrhn_bonnier
    • jonastanz
    • sorenthorup
    • 186-dk