Skip to content

Commit bfd0fbc

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 bfd0fbc

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

src/index.html

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,50 +48,28 @@
4848
<body>
4949
<app-shell></app-shell>
5050

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-
7351
<!-- Polyfills -->
74-
<script class="scripts" src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
52+
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"
53+
type="text/javascript">
54+
</script>
7555
<script src="/node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"
7656
type="text/javascript"
7757
nomodule>
7858
</script>
7959
<script src="/node_modules/regenerator-runtime/runtime.js"
8060
type="text/javascript"
81-
class="scripts"
8261
nomodule>
8362
</script>
8463

8564
<!-- ES6 Module Code -->
86-
<script src="/module/index.ts.js" type="module" class="scripts"></script>
65+
<script src="/module/index.ts.js" type="module"></script>
8766

8867
<!-- SystemJS Module Code -->
8968
<script src="/node_modules/systemjs/dist/system-production.js"
9069
type="text/javascript"
91-
class="scripts"
9270
nomodule>
9371
</script>
94-
<script class="scripts" nomodule>
72+
<script type="text/javascript" nomodule>
9573
System.import('/nomodule/index.ts.js');
9674
</script>
9775

0 commit comments

Comments
 (0)