summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-08-25 15:47:32 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-08-26 12:42:10 +0200
commitc17b8317d6b38802e73376d325a0eea2d11d3d4b (patch)
tree45e4d3386a6a6fbe04610c63acfaf558a3b02dc6 /core/src
parent5509063caac2964bea8e33d272238f266ca6749b (diff)
downloadnextcloud-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.js15
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