We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
host
1 parent 64da2b0 commit b4561f9Copy full SHA for b4561f9
src/index.js
@@ -48,7 +48,7 @@ export default function Navaid(base, on404) {
48
49
function click(e) {
50
var y, x = e.target.closest('a');
51
- if (!x || !x.href || x.target) return;
+ if (!x || !x.href || x.target || x.host !== location.host) return;
52
if (e.ctrlKey || e.metaKey || e.altKey || e.shiftKey || e.button) return;
53
if (y = fmt(x.getAttribute('href'))) {
54
e.preventDefault();
0 commit comments