• Resolved craigtommola

    (@craigtommola)


    You need to add single quotes around your php in disable-right-click-for-wp.php:49

    var show_msg = <?php echo $show_msg_on_off ?>;

    should be

    var show_msg = ‘<?php echo $show_msg_on_off ?>’;

    Or else there is a console error, and the plugin doesn’t work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aftab Ali Muni

    (@aftabmuni)

    Hi @craigtommola
    It is not needed, and I had tested this plugin in many browsers and it is working.
    Thanks for pointing it.

    Thread Starter craigtommola

    (@craigtommola)

    Puzzling. Because without it. I receive a console error, pointing specifically at that line:

    Uncaught SyntaxError: Unexpected token ';'
    var show_msg = ;

    and the plugin doesn’t work, but when I add the single quotes, the console error is gone, and the plugin does work.

    Chrome Version 79.0.3945.88 (Official Build) (64-bit)
    Mojave 10.14.6

    Plugin Author Aftab Ali Muni

    (@aftabmuni)

    Fixed it, Please take latest update.
    Thanks.

    Thread Starter craigtommola

    (@craigtommola)

    Thank you kindly

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fixed it’ is closed to new replies.