Commit 457be833 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68272 954022d7-b5bf-4e40-9824-e11837661b57
parent 1e367713
...@@ -27,6 +27,9 @@ AscBrowser.isIE = (AscBrowser.userAgent.indexOf("msie") > -1 || ...@@ -27,6 +27,9 @@ AscBrowser.isIE = (AscBrowser.userAgent.indexOf("msie") > -1 ||
AscBrowser.userAgent.indexOf("trident") > -1 || AscBrowser.userAgent.indexOf("trident") > -1 ||
AscBrowser.userAgent.indexOf("edge") > -1); AscBrowser.userAgent.indexOf("edge") > -1);
AscBrowser.isIE9 = (AscBrowser.userAgent.indexOf("msie9") > -1 || AscBrowser.userAgent.indexOf("msie 9") > -1);
AscBrowser.isIE10 = (AscBrowser.userAgent.indexOf("msie10") > -1 || AscBrowser.userAgent.indexOf("msie 10") > -1);
// macOs detect // macOs detect
AscBrowser.isMacOs = (AscBrowser.userAgent.indexOf('mac') > -1); AscBrowser.isMacOs = (AscBrowser.userAgent.indexOf('mac') > -1);
...@@ -68,7 +71,7 @@ AscBrowser.zoom = 1; ...@@ -68,7 +71,7 @@ AscBrowser.zoom = 1;
AscBrowser.checkZoom = function() AscBrowser.checkZoom = function()
{ {
if (AscBrowser.isChrome && document && document.firstElementChild) if (AscBrowser.isChrome && document && document.firstElementChild && document.body)
{ {
document.firstElementChild.style.zoom = "reset"; document.firstElementChild.style.zoom = "reset";
AscBrowser.zoom = document.body.clientWidth / window.innerWidth; AscBrowser.zoom = document.body.clientWidth / window.innerWidth;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment