This commit is contained in:
gorhill 2017-07-07 11:23:24 -04:00
parent b9bf155a30
commit 9ac4dc9f81
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 14 deletions

View File

@ -1009,20 +1009,7 @@ var onHideTooltip = function() {
uDom('body').on('mouseenter', '[data-tip]', onShowTooltip) uDom('body').on('mouseenter', '[data-tip]', onShowTooltip)
.on('mouseleave', '[data-tip]', onHideTooltip); .on('mouseleave', '[data-tip]', onHideTooltip);
// https://github.com/gorhill/uBlock/issues/2734 uDom('a[href]').on('click', gotoURL);
// Workaround until fixed in Firefox Nightly.
if (
self.chrome instanceof Object === false ||
typeof chrome.runtime.getBrowserInfo !== 'function'
) {
uDom('a[href]').on('click', gotoURL);
} else {
chrome.runtime.getBrowserInfo().then(function(info) {
if ( info.name !== 'Firefox' ) {
uDom('a[href]').on('click', gotoURL);
}
});
}
})(); })();
/******************************************************************************/ /******************************************************************************/