Support » Plugin: WP Content Copy Protection & No Right Click » ReferenceError: on is not defined

  • Resolved relleenbetts

    (@relleenbetts)


    Hi there!

    I’ve noticed an error given at the web.dev analysis that’s related to the plugin. The particular error, which appears under the “Best practices” section, states the following:
    ReferenceError: on is not defined at https://pruebas.imthemoisturizer.com/:215:32

    I tried deactivating the plugin and testing the website again and the error disappeared, although when the plugin was activated again the error remained.

    Here’s the piece of code that’s showing the error, as per the developer tools of the browser:

    <script id="wpcp_css_disable_selection" type="text/javascript">
        var e = document.getElementsByTagName('body')[0];
        if (e)
        {
            e.setAttribute('unselectable', on);
        }
        </script>

    I hope this helps find a solution to the issue, thanks a lot in advance!

    • This topic was modified 2 months, 1 week ago by relleenbetts.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter relleenbetts

    (@relleenbetts)

    Hi! Could you take a look at this?

    Plugin Support Adam Salah

    (@adam1318)

    Hello, @relleenbetts

    Thank you for your patience.

    We’re glad to inform you that we have fixed the issue and will push a new update soon.
    We’re currently doing some tests on the new update as we care to push a clean update without any issues.

    Thank you for your understanding.

    Have a nice day.

    Regards

    Thread Starter relleenbetts

    (@relleenbetts)

    Hi Adam, thanks a lot for solving it so quick.

    Have a great day!

    Plugin Support Adam Salah

    (@adam1318)

    Hello, @relleenbetts

    Thank you for your patience.

    We have fixed the issue and we push a new version (3.5.1), so kindly update the plugin and provide us with your feedback.

    Thank you and have a lovely day.

    Regards

    Thread Starter relleenbetts

    (@relleenbetts)

    Hi Adam!

    I updated to the new version yesterday and have been checking if the issue replicated, but everything’s working smoothly.

    Thanks a lot for your help, have a great day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.