diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 10f4d11e41..796d60a2c3 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -766,7 +766,6 @@ define([ if (!window['AscDesktopEditor']) { var tips = []; Common.Utils.isIE9m && tips.push(me.warnBrowserIE9); - !Common.Utils.isGecko && (Math.abs(me.getBrowseZoomLevel() - 1) > 0.1) && tips.push(Common.Utils.String.platformKey(me.warnBrowserZoom, '{0}')); if (tips.length) me.showTips(tips); } @@ -1246,20 +1245,6 @@ define([ this._state.isDisconnected = true; }, - getBrowseZoomLevel: function() { - if (Common.Utils.isIE) { - return screen.logicalXDPI/screen.deviceXDPI; - } else { - var zoom = window.outerWidth / document.documentElement.clientWidth; - - if (Common.Utils.isSafari) { - zoom = Math.floor(zoom * 10) / 10; - } - - return zoom; - } - }, - showTips: function(strings) { var me = this; if (!strings.length) return; diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index d7ff6caa7e..a60df5b539 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -565,7 +565,6 @@ define([ if (!window['AscDesktopEditor']) { var tips = []; Common.Utils.isIE9m && tips.push(me.warnBrowserIE9); - !Common.Utils.isGecko && (Math.abs(me.getBrowseZoomLevel() - 1) > 0.1) && tips.push(Common.Utils.String.platformKey(me.warnBrowserZoom, '{0}')); if (tips.length) me.showTips(tips); } @@ -1015,20 +1014,6 @@ define([ // this.getFileMenu().setMode({isDisconnected:true}); }, - getBrowseZoomLevel: function() { - if (Common.Utils.isIE) { - return screen.logicalXDPI/screen.deviceXDPI; - } else { - var zoom = window.outerWidth / document.documentElement.clientWidth; - - if (Common.Utils.isSafari) { - zoom = Math.floor(zoom * 10) / 10; - } - - return zoom; - } - }, - showTips: function(strings) { var me = this; if (!strings.length) return; diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 69f3b62a43..fe14b2f9a6 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -674,8 +674,6 @@ define([ if (!window['AscDesktopEditor']) { var tips = []; Common.Utils.isIE9m && tips.push(me.warnBrowserIE9); - !Common.Utils.isGecko && !me.appOptions.isEditMailMerge && !me.appOptions.isEditDiagram && !me.appOptions.nativeApp && - (Math.abs(me.getBrowseZoomLevel() - 1) > 0.1) && tips.push(Common.Utils.String.platformKey(me.warnBrowserZoom, '{0}')); if (tips.length) me.showTips(tips); } @@ -1152,20 +1150,6 @@ define([ this._state.isDisconnected = true; }, - getBrowseZoomLevel: function() { - if (Common.Utils.isIE) { - return screen.logicalXDPI/screen.deviceXDPI; - } else { - var zoom = window.outerWidth / document.documentElement.clientWidth; - - if (Common.Utils.isSafari) { - zoom = Math.floor(zoom * 10) / 10; - } - - return zoom; - } - }, - showTips: function(strings) { var me = this; if (!strings.length) return;