Skip to content

Commit

Permalink
Merge pull request #5268 from Polymer/5267-kschaaf-force-ce
Browse files Browse the repository at this point in the history
Fix method to force CE polyfill on. Fixes #5267.
  • Loading branch information
dfreedm authored Jun 25, 2018
2 parents 4e6a379 + 12b6253 commit acc7757
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 acc7757

Please sign in to comment.