diff --git a/apps/common/main/lib/util/htmlutils.js b/apps/common/main/lib/util/htmlutils.js index 81228ce1bb..a5a7a31df6 100644 --- a/apps/common/main/lib/util/htmlutils.js +++ b/apps/common/main/lib/util/htmlutils.js @@ -60,7 +60,7 @@ if ( window.nativeprocvars && window.nativeprocvars.rtl !== undefined ) { else ui_rtl = true; } -if ( ui_rtl && !isIE ) { +if ( ui_rtl && isIEBrowser !== true ) { document.body.setAttribute('dir', 'rtl'); document.body.classList.add('rtl'); } @@ -86,7 +86,7 @@ function checkScaling() { } } - if ( !isIE ) { + if ( isIEBrowser !== true ) { matches = { 'pixel-ratio__2_5': 'screen and (-webkit-min-device-pixel-ratio: 2.25), screen and (min-resolution: 2.25dppx)', }; @@ -106,7 +106,7 @@ let svg_icons = ['./resources/img/iconssmall@2.5x.svg', window.Common = { Utils: { injectSvgIcons: function () { - if ( isIE ) return; + if ( isIEBrowser === true ) return; let runonce; // const el = document.querySelector('div.inlined-svg');