Skip to content

Commit

Permalink
[forms] fix for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Dec 10, 2024
1 parent 3d6b90f commit ea54976
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions apps/documenteditor/forms/index.html.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@
<script>
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/))) {
if (isIEBrowser) {
var m = /msie (\d+\.\d+)/.exec(userAgent);
if (m && parseFloat(m[1]) < 10.0) {
document.write(
Expand Down Expand Up @@ -256,6 +257,14 @@
</script>
<!--application-->
<script src="../../../../../../sdkjs/common/device_scale.js?__inline=true"></script>
<script data-main="app" src="../../../vendor/requirejs/require.js"></script>
<script>
isIEBrowser === true &&
(document.write('<script src="../../common/main/lib/util/fix-ie-compat.js"><\/script>'),
document.write('<script src="../../../../sdkjs/vendor/string.js"><\/script>'));
</script>
<script src="../../../vendor/requirejs/require.js"></script>
<script>
isIEBrowser === true ? require(['ie/app']) : require(['app']);
</script>
</body>
</html>

0 comments on commit ea54976

Please sign in to comment.