I’m a newbie NuxtJS programmer. I just searched all over the internet but couldn’t find the answer.
I’m just wondering that is it natural that NuxtJS automatically adds the script at the end of the body described as below.
<script type="text/javascript"> document.oncontextmenu = null; document.onselectstart = null; document.ondragstart = null; document.onmousedown = null; document.body.oncontextmenu = null; document.body.onselectstart = null; document.body.ondragstart = null; document.body.onmousedown = null; document.body.oncut = null; document.body.oncopy = null; document.body.onpaste = null; </script>
Everytime I change my page, it keeps adding this script, so it stacks the same script over and over.
Do you guys have any ideas why this is happening?
I also searched entire code where it does add this script but couldn’t find it.
I can give any informations you need, so please help me with this problem.
Many thanks!!!
Advertisement
Answer
Since this one is added only on Chrome and not Firefox, and looking at the code added, I guess that you can simply ignore that one and move along (something on your side and not directly related to Nuxt).