summaryrefslogtreecommitdiffstats
path: root/core/js/compatibility.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/compatibility.js')
-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;