Home » Javascript » Restore JS Class to original state

Restore JS Class to original state

Posted by: admin August 19, 2018 Leave a comment

Questions:

I am trying to install a cookie control plugin in preparation for the GDPR on friday.

The plugin is throwing this error:

cookieControl-8.0.min.js:1 Uncaught TypeError: t.lastIndexOf is not a function
at f (VM6063 cookieControl-8.0.min.js:formatted:162)
at q (VM6063 cookieControl-8.0.min.js:formatted:155)
at k (VM6063 cookieControl-8.0.min.js:formatted:411)
at VM6063 cookieControl-8.0.min.js:formatted:247
at XMLHttpRequest.c.onload (VM6063 cookieControl-8.0.min.js:formatted:248)

I have been told by the companies support that t is an Array.prototype and that another plugin must have changed the class somewhere else in the code.

is there any possible way i can restore Array.prototype back to its original state?

The website is currently running on the Magento 1.9 platform.

Answers: