Skip to content

Commit

Permalink
fix #2768
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jul 7, 2017
1 parent b9bf155 commit 9ac4dc9
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,20 +1009,7 @@ var onHideTooltip = function() {
uDom('body').on('mouseenter', '[data-tip]', onShowTooltip)
.on('mouseleave', '[data-tip]', onHideTooltip);

// https://github.com/gorhill/uBlock/issues/2734
// 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);
}
});
}
uDom('a[href]').on('click', gotoURL);
})();

/******************************************************************************/
Expand Down

0 comments on commit 9ac4dc9

Please sign in to comment.