diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index 716c6e6d2..5e2c104a9 100644 --- a/apps/common/main/lib/util/utils.js +++ b/apps/common/main/lib/util/utils.js @@ -137,15 +137,15 @@ Common.Utils = _.extend(new(function() { } var $root = $(document.body); - if ( scale.devicePixelRatio > 1 && scale.devicePixelRatio <= 1.5 ) { + if ( scale.devicePixelRatio < 1.5 ) { + $root.removeClass('pixel-ratio__1_5 pixel-ratio__2'); + } else + if ( scale.devicePixelRatio > 1.5 && !(scale.devicePixelRatio > 2) ) { $root.removeClass('pixel-ratio__2'); $root.addClass('pixel-ratio__1_5'); - } else - if ( scale.devicePixelRatio > 1.5 /*&& scale.devicePixelRatio <= 2*/ ) { + } else { $root.addClass('pixel-ratio__2'); $root.removeClass('pixel-ratio__1_5'); - } else { - $root.removeClass('pixel-ratio__1_5 pixel-ratio__2'); } // me.innerWidth = window.innerWidth * me.zoom;