From 730b9399676cdadd58994ae04f0ae658ec2d4524 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 11 Mar 2021 15:11:34 +0300 Subject: [PATCH] [common] fix bug 48995, 48992 --- apps/common/main/lib/util/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index d277e4df4..fcd6c5fe8 100644 --- a/apps/common/main/lib/util/utils.js +++ b/apps/common/main/lib/util/utils.js @@ -120,8 +120,8 @@ Common.Utils = _.extend(new(function() { me = this, checkSize = function() { var scale = {}; - if ( !!window.AscCommon ) - scale = window.AscCommon.checkDeviceScale(); + if ( !!window.AscCommon /*&& !!window.AscCommon.checkDeviceScale*/ ) + scale = window.AscCommon.checkDeviceScale1(); else { var str_mq_150 = "screen and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), " + "screen and (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx)";