-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (26 loc) · 727 Bytes
/
index.html
File metadata and controls
27 lines (26 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
const supportsES6 = function() {
try {
new Function("(a = 0) => a");
return true;
}
catch (err) {
return false;
}
}();
addEventListener("load", function () {
if (supportsES6 !== true) {
document.body.innerHTML = '<h1> Your browser not support ES6, download <a href="https://www.google.com/chrome/">Chrome</a></h1>';
}
});
</script>
</head>
<body>
<script type="module" src="app.js"></script>
</body>
</html>