From c9ec1ca22823710fd91dc9b506cdb20188d7853c Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 8 Aug 2020 15:21:16 +0200 Subject: [PATCH] Add iframe escape on mobile layout too --- index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index e2d38fe..69d1a1a 100644 --- a/index.ts +++ b/index.ts @@ -169,8 +169,9 @@ InitUiElements.OnlyIf(State.state.featureSwitchWelcomeMessage, () => { if ((window != window.top && !State.state.featureSwitchWelcomeMessage.data) || State.state.featureSwitchIframe.data) { const currentLocation = State.state.locationControl; const url = `${window.location.origin}${window.location.pathname}?z=${currentLocation.data.zoom}&lat=${currentLocation.data.lat}&lon=${currentLocation.data.lon}`; - - new FixedUiElement(``).AttachTo("messagesbox") + const content = ``; + new FixedUiElement(content).AttachTo("messagesbox"); + new FixedUiElement(content).AttachTo("help-button-mobile") }