Skip to content

Commit 9b3e9a3

Browse files
crisbetojosephperrott
authored andcommitted
chore: fix error when running demo app in IE11 (#11111)
1 parent 32111e0 commit 9b3e9a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/demo-app/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
1313

1414
<script>
15-
if (customElements) {
16-
customElements.forcePolyfill = true;
15+
if (window.customElements) {
16+
window.customElements.forcePolyfill = true;
1717
}
1818
</script>
1919
<script src="node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script>
@@ -29,7 +29,7 @@
2929
<script src="node_modules/systemjs/dist/system.src.js"></script>
3030
<script src="node_modules/zone.js/dist/zone.js"></script>
3131
<script src="node_modules/hammerjs/hammer.min.js"></script>
32-
32+
3333
<script>
3434
System.import('system-config.js').then(function () {
3535
System.import('main');

0 commit comments

Comments
 (0)