Add iframe escape on mobile layout too
This commit is contained in:
parent
6acd49d888
commit
c9ec1ca228
1 changed files with 3 additions and 2 deletions
5
index.ts
5
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(`<a href='${url}' target='_blank'><span class='iframe-escape'><img src='assets/pop-out.svg'></span></a>`).AttachTo("messagesbox")
|
||||
const content = `<a href='${url}' target='_blank'><span class='iframe-escape'><img src='assets/pop-out.svg'></span></a>`;
|
||||
new FixedUiElement(content).AttachTo("messagesbox");
|
||||
new FixedUiElement(content).AttachTo("help-button-mobile")
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue