Wondering what’s next for npm?Check out our public roadmap! »

    @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();

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    37

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    13.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar