kmeleon icon indicating copy to clipboard operation
kmeleon copied to clipboard

Nodelist.ForEach is not a function.

Open Kris-88 opened this issue 5 years ago • 2 comments

The ForEach function is used, in particular, in the wpdiscuz wordpress plugin. The problem can be solved by adding a line before scripts. NodeList.prototype.forEach = Array.prototype.forEach; Is there a way to insert this polyfill into omni.ja? Or is it possible to incorporate it into the browser in some other way?

Kris-88 avatar Oct 22 '20 09:10 Kris-88

this is gecko50's function: https://bugzilla.mozilla.org/show_bug.cgi?id=1290636

roytam1 avatar Oct 22 '20 15:10 roytam1

Ok, we can't change the engine, but maybe we can add a "content-document-global-created" event for macros and inject a polyfill script? $OnLoad event fires too late.

Kris-88 avatar Oct 22 '20 17:10 Kris-88