mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-09-25 11:17:24 +00:00
Merge "Fix TypeError on <a> with no href"
This commit is contained in:
commit
83cc5ad1ef
|
@ -144,6 +144,7 @@
|
|||
// No popup if scrolling or on certain kinds of links.
|
||||
if (
|
||||
mw.popups.scrolled || // Prevents hovering on popups while scrolling
|
||||
!href ||
|
||||
href.indexOf( '?' ) !== -1 ||
|
||||
href.indexOf( 'javascript:' ) === 0 || // jshint ignore:line
|
||||
href.indexOf( location.origin + location.pathname + '#' ) === 0
|
||||
|
|
Loading…
Reference in a new issue