diff options
author | acsfer <carlos@reendex.com> | 2021-12-02 09:48:52 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-12-02 10:29:20 +0000 |
commit | 9ec2c36c056adf5e51ad879fbfb91198eeb3c1bf (patch) | |
tree | ae7cbfa8fddc2b3e7e65bb3ff3cde9532425ba80 /core/src | |
parent | 43deb706a8f9e2bd1fb20b7e22f86960c0ea4887 (diff) | |
download | nextcloud-server-9ec2c36c056adf5e51ad879fbfb91198eeb3c1bf.tar.gz nextcloud-server-9ec2c36c056adf5e51ad879fbfb91198eeb3c1bf.zip |
Remove IE polyffils
Pursuing the "IE removal" quest ☮️
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/init.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/src/init.js b/core/src/init.js index 60193b9eaab..077d18efd27 100644 --- a/core/src/init.js +++ b/core/src/init.js @@ -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, |