forked from MapComplete/MapComplete
Add tests in iframe, fix loading in iframes
This commit is contained in:
parent
8bb9f0768c
commit
2572e99b95
3 changed files with 4 additions and 17 deletions
|
|
@ -123,9 +123,8 @@ export class InitUiElements {
|
|||
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}`;
|
||||
const content = new Link(Svg.pop_out_ui().SetClass("iframe-escape"), url, true);
|
||||
new FixedUiElement(content.Render()).AttachTo("help-button-mobile")
|
||||
content.AttachTo("messagesbox");
|
||||
new Link(Svg.pop_out_ui().SetClass("iframe-escape"), url, true)
|
||||
.AttachTo("messagesbox");
|
||||
}
|
||||
|
||||
State.state.osmConnection.userDetails.map((userDetails: UserDetails) => userDetails?.home)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue