mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
code review: fix workaround for legacy FF
This commit is contained in:
parent
2cb8ddbe03
commit
414765f526
1 changed files with 4 additions and 1 deletions
|
@ -1011,7 +1011,10 @@ var onHideTooltip = function() {
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/2734
|
// https://github.com/gorhill/uBlock/issues/2734
|
||||||
// Workaround until fixed in Firefox Nightly.
|
// 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);
|
uDom('a[href]').on('click', gotoURL);
|
||||||
} else {
|
} else {
|
||||||
chrome.runtime.getBrowserInfo().then(function(info) {
|
chrome.runtime.getBrowserInfo().then(function(info) {
|
||||||
|
|
Loading…
Reference in a new issue