diff --git a/apps/common/main/lib/util/htmlutils.js b/apps/common/main/lib/util/htmlutils.js index b083150245..897d81bed8 100644 --- a/apps/common/main/lib/util/htmlutils.js +++ b/apps/common/main/lib/util/htmlutils.js @@ -106,7 +106,7 @@ let svg_icons = ['./resources/img/iconssmall@2.5x.svg', window.Common = { Utils: { injectSvgIcons: function () { - if ( isIEBrowser === true ) return; + if ( window.isIEBrowser === true ) return; let runonce; // const el = document.querySelector('div.inlined-svg'); diff --git a/apps/spreadsheeteditor/main/index_internal.html b/apps/spreadsheeteditor/main/index_internal.html index 30833d5582..2af4f623f1 100644 --- a/apps/spreadsheeteditor/main/index_internal.html +++ b/apps/spreadsheeteditor/main/index_internal.html @@ -133,6 +133,7 @@ var userAgent = navigator.userAgent.toLowerCase(), check = function(regex){ return regex.test(userAgent); }, + isIEBrowser = !check(/opera/) && (check(/msie/) || check(/trident/)), stopLoading = false; if (!check(/opera/) && (check(/msie/) || check(/trident/))) { var m = /msie (\d+\.\d+)/.exec(userAgent);