Load babel-polyfill only when necessary.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'babel-polyfill';
|
||||
import Vue from 'vue';
|
||||
import Admin from './Admin.vue';
|
||||
import Icon from 'vue-awesome/components/Icon.vue'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'babel-polyfill';
|
||||
import Vue from 'vue';
|
||||
import Download from './Download.vue';
|
||||
import Icon from 'vue-awesome/components/Icon.vue'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'babel-polyfill';
|
||||
import Vue from 'vue';
|
||||
import Upload from './Upload.vue';
|
||||
import store from './Upload/store.js';
|
||||
|
||||
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 {
|
||||
|
||||
@@ -7,6 +7,17 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link href="/assets/styles.css" rel="stylesheet">
|
||||
<script>
|
||||
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));
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -7,6 +7,17 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link href="/assets/styles.css" rel="stylesheet">
|
||||
<script>
|
||||
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));
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<link href="/assets/favicon.ico" rel="icon" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<link href="/assets/styles.css" rel="stylesheet">
|
||||
<style>
|
||||
html {
|
||||
position: relative;
|
||||
|
||||
@@ -7,6 +7,17 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<link href="/assets/styles.css" rel="stylesheet">
|
||||
<script>
|
||||
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));
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user