forked from Qortal/qortal
Block external links.
This commit is contained in:
parent
7392082875
commit
85735fabb2
@ -348,6 +348,10 @@ function interceptClickEvent(e) {
|
||||
}
|
||||
e.preventDefault();
|
||||
}
|
||||
else if (href.startsWith("http://") || href.startsWith("https://") || href.startsWith("//")) {
|
||||
// Block external links
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
if (document.addEventListener) {
|
||||
document.addEventListener('click', interceptClickEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user