diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index fcd6c5fe8..80df14641 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 /*&& !!window.AscCommon.checkDeviceScale*/ ) - scale = window.AscCommon.checkDeviceScale1(); + if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale ) + scale = window.AscCommon.checkDeviceScale(); 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)"; @@ -1042,4 +1042,4 @@ Common.Utils.UserInfoParser = new(function() { return usergroups; } } -})(); \ No newline at end of file +})();