Yuki Takei 4 лет назад
Родитель
Сommit
6e783b1e59

+ 1 - 2
packages/app/config/webpack.common.js

@@ -26,7 +26,6 @@ module.exports = (options) => {
       'js/legacy':                    './src/client/legacy/crowi',
       'js/legacy-presentation':       './src/client/legacy/crowi-presentation',
       'js/plugin':                    './src/client/plugin',
-      'js/ie11-polyfill':             './src/client/ie11-polyfill',
       'js/hackmd-agent':              './src/client/hackmd-agent',
       'js/hackmd-styles':             './src/client/hackmd-styles',
       // styles
@@ -172,7 +171,7 @@ module.exports = (options) => {
             test: /node_modules[\\/].*\.(js|jsx|json)$/,
             chunks: (chunk) => {
               // ignore patterns
-              return chunk.name != null && !chunk.name.match(/boot|legacy-presentation|ie11-polyfill|hackmd-/);
+              return chunk.name != null && !chunk.name.match(/boot|legacy-presentation|hackmd-/);
             },
             name: 'js/vendors',
             minSize: 1,

+ 0 - 1
packages/app/src/client/ie11-polyfill.js

@@ -1 +0,0 @@
-import '@babel/polyfill';

+ 0 - 1
packages/app/src/server/views/installer.html

@@ -13,7 +13,6 @@
   <meta name="apple-mobile-web-app-title" content="{{ appService.getAppTitle() | preventXss }}">
 
   {% include './widget/headers/favicon.html' %}
-  {% include './widget/headers/ie11-polyfills.html' %}
 
   {{ cdnScriptTagsByGroup('basis') }}
 

+ 0 - 1
packages/app/src/server/views/layout/layout.html

@@ -15,7 +15,6 @@
   {{ getConfig('crowi', 'customize:header') | default('') }}
 
   {% include '../widget/headers/favicon.html' %}
-  {% include '../widget/headers/ie11-polyfills.html' %}
 
   {{ cdnScriptTagsByGroup('basis') }}
 

+ 0 - 10
packages/app/src/server/views/widget/headers/ie11-polyfills.html

@@ -1,10 +0,0 @@
-<!-- polyfills for IE11 -->
-<script>
-  var userAgent = window.navigator.userAgent.toLowerCase();
-  if (userAgent.indexOf('msie') != -1 || userAgent.indexOf('trident') != -1) {
-    var scriptElement = document.createElement('script');
-    scriptElement.src = '{{ webpack_asset("js/ie11-polyfill.js") }}';
-    var headElement = document.getElementsByTagName('head')[0];
-    headElement.appendChild(scriptElement);
-  }
-</script>