Skip to content

Commit

Permalink
[SSE] fix "diagram" editor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 27, 2024
1 parent 929800f commit 14e69d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/spreadsheeteditor/main/index_internal.html.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;
if (!check(/opera/) && (check(/msie/) || check(/trident/))) {
var isIEBrowser = !check(/opera/) && (check(/msie/) || check(/trident/));
if ( isIEBrowser ) {
var m = /msie (\d+\.\d+)/.exec(userAgent);
if (m && parseFloat(m[1]) < 10.0) {
document.write('<div class="app-error-panel">' +
Expand Down Expand Up @@ -239,9 +240,6 @@
<script src="../../../../../../sdkjs/common/device_scale.js?__inline=true"></script>

<script>
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
isIEBrowser = !check(/opera/) && (check(/msie/) || check(/trident/));
isIEBrowser === true &&
(document.write('<script src="../../common/main/lib/util/fix-ie-compat.js"><\/script>'),
document.write('<script src="../../../../sdkjs/vendor/string.js"><\/script>'));
Expand Down

0 comments on commit 14e69d0

Please sign in to comment.