From 414765f52608d00a9db4221c34c944ed8ccd5a1d Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 3 Jul 2017 10:50:47 -0400 Subject: [PATCH] code review: fix workaround for legacy FF --- src/js/popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/popup.js b/src/js/popup.js index 37c10eccf..696cf5afe 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -1011,7 +1011,10 @@ var onHideTooltip = function() { // https://github.com/gorhill/uBlock/issues/2734 // Workaround until fixed in Firefox Nightly. - if ( typeof chrome.runtime.getBrowserInfo !== 'function' ) { + if ( + self.chrome instanceof Object === false || + typeof chrome.runtime.getBrowserInfo !== 'function' + ) { uDom('a[href]').on('click', gotoURL); } else { chrome.runtime.getBrowserInfo().then(function(info) {