Browse Source

#957 Load retina images when window.devicePixelRatio > 1.5

Alex Trofimov 8 years ago
parent
commit
e05a882e33
1 changed files with 2 additions and 2 deletions
  1. 2 2
      template/_header_js.html

+ 2 - 2
template/_header_js.html

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