Added window.devicePixelRatio to Firefox 18 detection

This commit is contained in:
bcoles
2013-01-12 14:26:16 +10:30
parent c2dbc50d00
commit 224cf0c7d0

View File

@@ -218,7 +218,7 @@ beef.browser = {
* @example: beef.browser.isFF18()
*/
isFF18: function() {
return !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/18\./) != null;
return !!window.devicePixelRatio && !!window.history.replaceState && window.navigator.userAgent.match(/Firefox\/18\./) != null;
},
/**