minor. skabeloner tilføjet

This commit is contained in:
Andreas Gammelgaard Damsbo 2023-06-26 09:13:54 +02:00
commit 54d67b717f
14 changed files with 102 additions and 71 deletions

View file

@ -471,7 +471,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
}
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var filterRegex = new RegExp("https:\/\/familien\.gdamsbo\.dk");
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href);
}