diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-26 13:48:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 13:48:57 +0200 |
commit | aa150b9f85a2543fdbac8e73b5e6f8bb39f125f4 (patch) | |
tree | dae75486cc14619322c6a0381689d9d93bd918a4 /core | |
parent | 2fd45e5fc8cd7b8f58d23f00022b3dd627b273b8 (diff) | |
parent | c17b8317d6b38802e73376d325a0eea2d11d3d4b (diff) | |
download | nextcloud-server-aa150b9f85a2543fdbac8e73b5e6f8bb39f125f4.tar.gz nextcloud-server-aa150b9f85a2543fdbac8e73b5e6f8bb39f125f4.zip |
Merge pull request #33699 from nextcloud/remove-ie-dep
Remove old ie polify
Diffstat (limited to 'core')
-rw-r--r-- | core/src/init.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/core/src/init.js b/core/src/init.js index 9f5bd6027ef..507f5bbb35f 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -28,7 +28,6 @@ import _ from 'underscore' import $ from 'jquery' import moment from 'moment' -import cssVars from 'css-vars-ponyfill' import { initSessionHeartBeat } from './session-heartbeat' import OC from './OC/index' @@ -133,20 +132,6 @@ moment.locale(locale) * Initializes core */ export const initCore = () => { - const userAgent = window.navigator.userAgent - const edge = userAgent.indexOf('Edge/') - - if (edge > 0) { - $('html').addClass('edge') - console.info('Legacy browser detected, applying css vars polyfill') - cssVars({ - watch: true, - // set edge < 16 as incompatible - onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent) - && parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16), - }) - } - $(window).on('unload.main', () => { OC._unloadCalled = true }) $(window).on('beforeunload.main', () => { // super-trick thanks to http://stackoverflow.com/a/4651049 |