forked from MapComplete/MapComplete
Merge trees theme
This commit is contained in:
commit
adce2732b7
13 changed files with 572 additions and 6 deletions
4
index.ts
4
index.ts
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue