We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5073c commit 1a1725fCopy full SHA for 1a1725f
closure/goog/dom/dom.js
@@ -2180,13 +2180,7 @@ goog.dom.getActiveElement = function(doc) {
2180
*/
2181
goog.dom.getPixelRatio = function() {
2182
var win = goog.dom.getWindow();
2183
-
2184
- // devicePixelRatio does not work on Mobile firefox.
2185
- // TODO(user): Enable this check on a known working mobile Gecko version.
2186
- // Filed a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=896804
2187
- var isFirefoxMobile = goog.userAgent.GECKO && goog.userAgent.MOBILE;
2188
2189
- if (goog.isDef(win.devicePixelRatio) && !isFirefoxMobile) {
+ if (goog.isDef(win.devicePixelRatio)) {
2190
return win.devicePixelRatio;
2191
} else if (win.matchMedia) {
2192
return goog.dom.matchesPixelRatio_(.75) ||
0 commit comments