Browse Source

Remove IE polyffils

Pursuing the "IE removal" quest ☮️

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
tags/v24.0.0beta1
acsfer 2 years ago
parent
commit
9ec2c36c05
3 changed files with 3 additions and 13 deletions
  1. 1
    1
      core/js/dist/main.js
  2. 1
    1
      core/js/dist/main.js.map
  3. 1
    11
      core/src/init.js

+ 1
- 1
core/js/dist/main.js
File diff suppressed because it is too large
View File


+ 1
- 1
core/js/dist/main.js.map
File diff suppressed because it is too large
View File


+ 1
- 11
core/src/init.js View File

@@ -133,20 +133,10 @@ moment.locale(locale)
*/
export const initCore = () => {
const userAgent = window.navigator.userAgent
const msie = userAgent.indexOf('MSIE ')
const trident = userAgent.indexOf('Trident/')
const edge = userAgent.indexOf('Edge/')

if (msie > 0 || trident > 0) {
// (IE 10 or older) || IE 11
$('html').addClass('ie')
} else if (edge > 0) {
// for edge
if (edge > 0) {
$('html').addClass('edge')
}

// css variables fallback for IE
if (msie > 0 || trident > 0 || edge > 0) {
console.info('Legacy browser detected, applying css vars polyfill')
cssVars({
watch: true,

Loading…
Cancel
Save