aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-04-04 17:10:46 +0200
committerRobin Appelman <icewind@owncloud.com>2014-04-04 17:10:46 +0200
commit01d93f81f67f71189dc5e484c29c1f4918078fd8 (patch)
tree6f39fbe685b213cace34d547dfa932a08bba578c /core
parent09ac61f53b350a9045ee84bc291d9de5904a19b8 (diff)
downloadnextcloud-server-01d93f81f67f71189dc5e484c29c1f4918078fd8.tar.gz
nextcloud-server-01d93f81f67f71189dc5e484c29c1f4918078fd8.zip
Show higher resolution previews for high dpi screens
Diffstat (limited to 'core')
-rw-r--r--core/js/compatibility.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/compatibility.js b/core/js/compatibility.js
index 6548f95d42b..c07288857f2 100644
--- a/core/js/compatibility.js
+++ b/core/js/compatibility.js
@@ -148,3 +148,7 @@ function outerHTML(node){
return h;
})(node);
}
+
+// devicePixelRatio for IE10
+window.devicePixelRatio = window.devicePixelRatio ||
+ window.screen.deviceXDPI / window.screen.logicalXDPI || 1;