Merge pull request #739 from ONLYOFFICE/maxkadushkin-patch-1

fix bug 48995, 48992
This commit is contained in:
maxkadushkin 2021-03-11 15:17:18 +03:00 committed by GitHub
commit a214a9d75b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,8 +120,8 @@ Common.Utils = _.extend(new(function() {
me = this, me = this,
checkSize = function() { checkSize = function() {
var scale = {}; var scale = {};
if ( !!window.AscCommon /*&& !!window.AscCommon.checkDeviceScale*/ ) if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale )
scale = window.AscCommon.checkDeviceScale1(); scale = window.AscCommon.checkDeviceScale();
else { else {
var str_mq_150 = "screen and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), " + 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)"; "screen and (min-resolution: 1.5dppx) and (max-resolution: 1.9dppx)";