|
|
@@ -8,12 +8,11 @@
|
|
|
|
|
|
(function(w) {
|
|
|
var dpr = (w.devicePixelRatio === undefined ? 1 : Math.round(w.devicePixelRatio));
|
|
|
- if ($.cookie('devicePixelRatio') == dpr || dpr < 2 || (typeof(bIgnorePixelRatio) != "undefined" && bIgnorePixelRatio) || !navigator.cookieEnabled || '#dpr' === window.location.hash || localStorage.getItem("dpr"))
|
|
|
+ if ($.cookie('devicePixelRatio') == dpr || dpr < 2 || (typeof(bIgnorePixelRatio) != "undefined" && bIgnorePixelRatio) || !navigator.cookieEnabled || '#dpr' === window.location.hash)
|
|
|
return;
|
|
|
$.cookie('devicePixelRatio', dpr, {expires: 365, path: '/'});
|
|
|
if (!window.location.hash.length)
|
|
|
window.location.hash = 'dpr';
|
|
|
- localStorage.setItem("dpr", true);
|
|
|
window.location.reload();
|
|
|
})(window);
|
|
|
|