diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-25 15:47:32 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-26 12:42:10 +0200 |
commit | c17b8317d6b38802e73376d325a0eea2d11d3d4b (patch) | |
tree | 45e4d3386a6a6fbe04610c63acfaf558a3b02dc6 /core/src | |
parent | 5509063caac2964bea8e33d272238f266ca6749b (diff) | |
download | nextcloud-server-c17b8317d6b38802e73376d325a0eea2d11d3d4b.tar.gz nextcloud-server-c17b8317d6b38802e73376d325a0eea2d11d3d4b.zip |
Remove old ie polify
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/src')
-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 |