Fix: use api.openstreetmap.org on many places, fix #1573
This commit is contained in:
parent
1930f7bb53
commit
8fccf78478
14 changed files with 36 additions and 35 deletions
|
@ -27,6 +27,9 @@ Note that these values can be prepare with javascript in the theme by using a [c
|
|||
public static readonly imageExtensions = new Set(["jpg", "png", "svg", "jpeg", ".gif"])
|
||||
|
||||
public static initDomPurify() {
|
||||
if (Utils.runningFromConsole) {
|
||||
return
|
||||
}
|
||||
DOMPurify.addHook("afterSanitizeAttributes", function (node) {
|
||||
// set all elements owning target to target=_blank + add noopener noreferrer
|
||||
if ("target" in node) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue