aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/head.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/head.tpl')
-rwxr-xr-xview/tpl/head.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 54aa5d41c..496758079 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -7,6 +7,9 @@
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
+<script>(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','/retinaimages.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window)</script>
+<noscript><style id="devicePixelRatio" media="only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)">html{background-image:url("/retinaimages.php?devicePixelRatio=2")}</style></noscript>
+
{{$head_css}}
{{$js_strings}}