mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Block external links.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user