code review: fix workaround for legacy FF

This commit is contained in:
gorhill 2017-07-03 10:50:47 -04:00
parent 2cb8ddbe03
commit 414765f526
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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) {