Load babel-polyfill only when necessary.
This commit is contained in:
4
public/assets/babel-polyfill.js
Normal file
4
public/assets/babel-polyfill.js
Normal file
File diff suppressed because one or more lines are too long
BIN
public/assets/bootstrap/css/bootstrap.min.css.gz
Normal file
BIN
public/assets/bootstrap/css/bootstrap.min.css.gz
Normal file
Binary file not shown.
10
public/assets/polyfill.js
Normal file
10
public/assets/polyfill.js
Normal 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));
|
||||
}
|
||||
@@ -56,6 +56,7 @@ td.file-icon {
|
||||
}
|
||||
h1 .fa-icon {
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.btn .fa-icon.fa-fw {
|
||||
|
||||
Reference in New Issue
Block a user