polyfill DOM enumerables for Chrome 49
This commit is contained in:
parent
1ded89969b
commit
ff84e924fa
7
dom.js
7
dom.js
|
@ -4,6 +4,13 @@ if (!/Windows/i.test(navigator.userAgent)) {
|
||||||
document.documentElement.classList.add('non-windows');
|
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() {
|
function onDOMready() {
|
||||||
if (document.readyState != 'loading') {
|
if (document.readyState != 'loading') {
|
||||||
|
|
|
@ -644,6 +644,7 @@
|
||||||
<a target="_blank" href="https://github.com/stylish-userstyles/stylish/wiki/Applying-styles-to-specific-sites#advanced-matching-with-regular-expressions"><svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></a>
|
<a target="_blank" href="https://github.com/stylish-userstyles/stylish/wiki/Applying-styles-to-specific-sites#advanced-matching-with-regular-expressions"><svg class="svg-icon info"><use xlink:href="#svg-icon-help"/></svg></a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script src="dom.js"></script>
|
||||||
<script src="storage.js"></script>
|
<script src="storage.js"></script>
|
||||||
<script src="messaging.js"></script>
|
<script src="messaging.js"></script>
|
||||||
<script src="localization.js"></script>
|
<script src="localization.js"></script>
|
||||||
|
|
|
@ -115,11 +115,11 @@
|
||||||
<span class="expander">...</span>
|
<span class="expander">...</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script src="dom.js"></script>
|
||||||
<script src="health.js"></script>
|
<script src="health.js"></script>
|
||||||
<script src="storage.js"></script>
|
<script src="storage.js"></script>
|
||||||
<script src="messaging.js"></script>
|
<script src="messaging.js"></script>
|
||||||
<script src="apply.js"></script>
|
<script src="apply.js"></script>
|
||||||
<script src="dom.js"></script>
|
|
||||||
<script src="localization.js"></script>
|
<script src="localization.js"></script>
|
||||||
<script src="manage.js"></script>
|
<script src="manage.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<title>Stylus Options</title>
|
<title>Stylus Options</title>
|
||||||
<link rel="stylesheet" href="index.css">
|
<link rel="stylesheet" href="index.css">
|
||||||
|
<script src="/dom.js"></script>
|
||||||
<script src="/localization.js"></script>
|
<script src="/localization.js"></script>
|
||||||
<script src="/apply.js"></script>
|
<script src="/apply.js"></script>
|
||||||
<script src="/storage.js"></script>
|
<script src="/storage.js"></script>
|
||||||
<script src="/messaging.js"></script>
|
<script src="/messaging.js"></script>
|
||||||
<script src="/dom.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -55,12 +55,12 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script src="dom.js"></script>
|
||||||
<script src="localization.js"></script>
|
<script src="localization.js"></script>
|
||||||
<script src="health.js"></script>
|
<script src="health.js"></script>
|
||||||
<script src="storage.js"></script>
|
<script src="storage.js"></script>
|
||||||
<script src="messaging.js"></script>
|
<script src="messaging.js"></script>
|
||||||
<script src="apply.js"></script>
|
<script src="apply.js"></script>
|
||||||
<script src="dom.js"></script>
|
|
||||||
<script src="popup.js"></script>
|
<script src="popup.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user