diff --git a/dom.js b/dom.js index 540ebffb..5c4b50a0 100644 --- a/dom.js +++ b/dom.js @@ -4,6 +4,13 @@ if (!/Windows/i.test(navigator.userAgent)) { document.documentElement.classList.add('non-windows'); } +// polyfill for old browsers to enable [...results] and for-of +for (const type of [NodeList, NamedNodeMap, HTMLCollection, HTMLAllCollection]) { + if (!type.prototype[Symbol.iterator]) { + type.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; + } +} + function onDOMready() { if (document.readyState != 'loading') { diff --git a/edit.html b/edit.html index f6ef45a1..9deb6bf2 100644 --- a/edit.html +++ b/edit.html @@ -644,6 +644,7 @@ + diff --git a/manage.html b/manage.html index 28481ab7..4657d072 100644 --- a/manage.html +++ b/manage.html @@ -115,11 +115,11 @@ ... + - diff --git a/options/index.html b/options/index.html index 7b92a0d6..ac89629b 100644 --- a/options/index.html +++ b/options/index.html @@ -3,11 +3,11 @@ Stylus Options + - diff --git a/popup.html b/popup.html index 8e2c8d47..be687e34 100644 --- a/popup.html +++ b/popup.html @@ -55,12 +55,12 @@ + -