mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
Merge pull request #1927 from Squidly271/patch-2
Fix External Website popup
This commit is contained in:
@@ -1130,9 +1130,10 @@ function isValidURL(url) {
|
||||
}
|
||||
|
||||
$('body').on("click","a", function(e) {
|
||||
href = $(this).attr("href").trim();
|
||||
target = $(this).attr("target");
|
||||
var href = $(this).attr("href");
|
||||
var target = $(this).attr("target");
|
||||
if ( href ) {
|
||||
href = href.trim();
|
||||
if ( href.match('https?://[^\.]*.(my)?unraid.net/') || href.indexOf("https://unraid.net/") == 0 || href == "https://unraid.net" || href.indexOf("http://lime-technology.com") == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user