Skip to content

Commit c2869ce

Browse files
committed
Fix issue 1226: IE10 "Invalid argument" error in version 0.5 defining retina
https://github.com/CloudMade/Leaflet/issues/1226 Credit to dreamfall for the fix.
1 parent 590bbd9 commit c2869ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
mobile = typeof orientation !== undefined + '',
2222
msTouch = (window.navigator && window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints),
2323
retina = (('devicePixelRatio' in window && window.devicePixelRatio > 1) ||
24-
('matchMedia' in window && window.matchMedia("") && window.matchMedia("(min-resolution:144dpi)").matches)),
24+
('matchMedia' in window && window.matchMedia("(min-resolution:144dpi)") && window.matchMedia("(min-resolution:144dpi)").matches)),
2525

2626
doc = document.documentElement,
2727
ie3d = ie && ('transition' in doc.style),

0 commit comments

Comments
 (0)