From 00cc0e8af70fb4f59ea793a195e4bf9277f80e48 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 8 Aug 2020 22:36:23 +0200 Subject: [PATCH] Fix iframe --- themeGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themeGenerator.ts b/themeGenerator.ts index f2659ab21..0152ce44b 100644 --- a/themeGenerator.ts +++ b/themeGenerator.ts @@ -360,7 +360,7 @@ export class ThemeGenerator extends UIElement { const jsonObjectRoot = this.themeObject.data; const base64 = this.themeObject.map(JSON.stringify).map(btoa); - this.url = base64.map((data) => `${window.location.origin}/index.html?userlayout=true#` + data); + this.url = base64.map((data) => `https://pietervdvn.github.io/MapComplete/index.html?userlayout=true#` + data); const self = this; this.allQuestionFields = [ this.JsonField(this.themeObject, "Name of this theme", "name", jsonObjectRoot),