Skip to content

Commit e0f1557

Browse files
committed
🔥 Remove "No ES6 Features" warning
The new build also supports browsers with a shitty JS Engine, so there shouldn't be any problems anymore.
1 parent e5c0137 commit e0f1557

File tree

1 file changed

+5
-43
lines changed

1 file changed

+5
-43
lines changed

src/index.html

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -27,71 +27,33 @@
2727
margin: 0;
2828
min-height: 100vh;
2929
}
30-
31-
.no-es6 {
32-
color: white;
33-
display: none;
34-
margin: auto;
35-
max-width: 700px;
36-
text-align: center;
37-
}
38-
39-
.no-es6 .flash {
40-
color: yellow;
41-
}
42-
43-
.no-es6 a {
44-
color: white;
45-
}
4630
</style>
4731
</head>
4832
<body>
4933
<app-shell></app-shell>
5034

51-
<div class="no-es6">
52-
<h1><span class="flash">⚡️</span> Oh, no! Unsupported Browser!</h1>
53-
<p>
54-
Seems like you're using an unsupported browser. Please use a modern one to use Festify.
55-
<a href="https://www.google.com/chrome/" alt="Download Google Chrome">Google Chrome</a>,
56-
<a href="https://www.mozilla.org/firefox/" alt="Download Mozilla Firefox">Firefox</a>
57-
or <a href="https://www.apple.com/safari/" alt="Download Safari">Safari</a> are really
58-
good choices. Any other browser that is based on one of them (like Opera) is also going
59-
to work well.
60-
</p>
61-
</div>
62-
63-
<script>
64-
try {
65-
eval('"use strict"; class ES6CompatTestClass {}; const test = () => {}; function* iterator() { yield 1; }');
66-
} catch (e) {
67-
console.error("Your browser doesn't support ES6 classes, ES6 generators or arrow functions (or all of them). Please upgrade to a modern one.");
68-
document.getElementsByClassName('no-es6-class').item(0).style.display = 'block';
69-
document.querySelectorAll('app-shell, .scripts').forEach(node => node.remove());
70-
}
71-
</script>
72-
7335
<!-- Polyfills -->
74-
<script class="scripts" src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
36+
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"
37+
type="text/javascript">
38+
</script>
7539
<script src="/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"
7640
type="text/javascript"
7741
nomodule>
7842
</script>
7943
<script src="/node_modules/regenerator-runtime/runtime.js"
8044
type="text/javascript"
81-
class="scripts"
8245
nomodule>
8346
</script>
8447

8548
<!-- ES6 Module Code -->
86-
<script src="/module/index.ts.js" type="module" class="scripts"></script>
49+
<script src="/module/index.ts.js" type="module"></script>
8750

8851
<!-- SystemJS Module Code -->
8952
<script src="/node_modules/systemjs/dist/system-production.js"
9053
type="text/javascript"
91-
class="scripts"
9254
nomodule>
9355
</script>
94-
<script class="scripts" nomodule>
56+
<script type="text/javascript" nomodule>
9557
System.import('/nomodule/index.ts.js');
9658
</script>
9759

0 commit comments

Comments
 (0)