Skip to content

Commit

Permalink
Fix method to force CE polyfill on. Fixes #5267.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jun 22, 2018
1 parent cbcf991 commit 12b6253
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions test/unit/shady-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down
5 changes: 2 additions & 3 deletions test/unit/shady-dynamic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
<head>
<meta charset="utf-8">
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down
5 changes: 2 additions & 3 deletions test/unit/shady-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
<html>
<head>
<script>
if (!window.customElements) {
window.customElements = {};
if (window.customElements) {
customElements.forcePolyfill = true;
}
customElements.forcePolyfill = true;
window.ShadyDOM = {
force: true
};
Expand Down

0 comments on commit 12b6253

Please sign in to comment.