From 224cf0c7d0f0c547d77ff6eb4f691563af80ec67 Mon Sep 17 00:00:00 2001 From: bcoles Date: Sat, 12 Jan 2013 14:26:16 +1030 Subject: [PATCH] Added `window.devicePixelRatio` to Firefox 18 detection --- core/main/client/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/main/client/browser.js b/core/main/client/browser.js index 0f1029b26..80df2192b 100644 --- a/core/main/client/browser.js +++ b/core/main/client/browser.js @@ -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; }, /**