You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Inside the code, there is this snippet:
if(!_.disableWorkerMessageHandler){// In worker_self.addEventListener('message',function(evt){varmessage=JSON.parse(evt.data);varlang=message.language;varcode=message.code;varimmediateClose=message.immediateClose;_self.postMessage(_.highlight(code,_.languages[lang],lang));if(immediateClose){_self.close();}},false);}
And it interferes with other code that don't send JSON data. We can add try catch that is ignored?
Probably my Chrome extensions.
Information:
Description
Inside the code, there is this snippet:
And it interferes with other code that don't send JSON data. We can add try catch that is ignored?
Probably my Chrome extensions.
Adding this:
Makes no difference, I keep getting JSON parse error in console when including Prism.js.
I can create a PR.
The text was updated successfully, but these errors were encountered: