Fix method to force CE polyfill on in 3.x

This commit is contained in:
Tim van der Lippe
2018-06-28 12:45:47 +02:00
parent 665901ab24
commit 84455c9ceb
3 changed files with 6 additions and 9 deletions

View File

@@ -12,10 +12,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};

View File

@@ -12,10 +12,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};

View File

@@ -11,10 +11,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<html>
<head>
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};