From cda129ba00508b8f8dce85596908418eb5c46f50 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Mon, 16 Dec 2024 13:09:06 +0300 Subject: [PATCH] [SSE] fix bug 72053 --- apps/common/main/lib/util/htmlutils.js | 2 +- apps/spreadsheeteditor/main/index_internal.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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);