|
|
@@ -9,10 +9,10 @@
|
|
|
});
|
|
|
|
|
|
(function(w) {
|
|
|
- var dpr = (w.devicePixelRatio === undefined ? 1 : w.devicePixelRatio);
|
|
|
- if ($.cookie('devicePixelRatio') == dpr || dpr <= 1.5)
|
|
|
+ var dpr = (w.devicePixelRatio === undefined ? 1 : Math.round(w.devicePixelRatio));
|
|
|
+ if ($.cookie('devicePixelRatio') == dpr || dpr < 2)
|
|
|
return;
|
|
|
- $.cookie('devicePixelRatio', 2, {expires: 365, path: '/'});
|
|
|
+ $.cookie('devicePixelRatio', dpr, {expires: 365, path: '/'});
|
|
|
window.location.reload();
|
|
|
})(window);
|
|
|
</script>
|