Small fixes

This commit is contained in:
Pieter Vander Vennet 2020-07-31 21:54:30 +02:00
parent fb13485983
commit dd8f5e549e
5 changed files with 9 additions and 4 deletions

View file

@ -39,7 +39,8 @@ export class CustomLayersPanel extends UIElement {
if(layout.name === CustomLayout.NAME){
continue;
}
if (layout.hideFromOverview && State.state.osmConnection.userDetails.data.name !== "Pieter Vander Vennet") {
if (layout.hideFromOverview &&
State.state.osmConnection.userDetails.data.name !== "Pieter Vander Vennet") {
continue
}

View file

@ -36,7 +36,7 @@ export class OsmConnection {
const iframeMode = window !== window.top;
if (pwaStandAloneMode || iframeMode) {
if ( iframeMode) {
// In standalone mode, we DON'T use single page login, as 'redirecting' opens a new window anyway...
// Same for an iframe...
this.auth = new osmAuth({