Merge branch 'master' into refactor/clean-layer-rendering

This commit is contained in:
Pieter Vander Vennet 2021-01-04 19:08:38 +01:00
commit 27f2206cae
13 changed files with 571 additions and 5 deletions

View file

@ -64,7 +64,9 @@ if (layoutFromBase64.startsWith("wiki:")) {
new FixedUiElement(`Downloading ${themeName} from the wiki...`)
.AttachTo("centermessage");
const cleanUrl = `https://wiki.openstreetmap.org/wiki/${themeName}`;
const url = `https://cors-anywhere.herokuapp.com/` + cleanUrl; // VERY SAFE AND HACKER-PROOF!
const url = `https://cors-anywhere.herokuapp.com/` + cleanUrl; // ~NOT~ VERY SAFE AND HACKER-PROOF!
/*/
const url = cleanUrl; // MUCH SAFER! //*/
$.ajax({
url: url,