Load babel-polyfill only when necessary.

This commit is contained in:
Christoph Wiechert
2017-07-18 15:44:29 +02:00
parent 8e075597f4
commit 7d0f328427
11 changed files with 49 additions and 4 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

10
public/assets/polyfill.js Normal file
View File

@@ -0,0 +1,10 @@
// stupid old browsers
if(typeof Promise === 'undefined') {
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.async = false;
script.src = '/assets/babel-polyfill.js';
d.getElementsByTagName('head')[0].appendChild(script);
}(document));
}

View File

@@ -56,6 +56,7 @@ td.file-icon {
}
h1 .fa-icon {
height: 50px;
width: 50px;
vertical-align: middle;
}
.btn .fa-icon.fa-fw {