Merge trees theme

This commit is contained in:
Pieter Vander Vennet 2021-01-04 19:08:22 +01:00
commit adce2732b7
13 changed files with 572 additions and 6 deletions

View file

@ -73,7 +73,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,