Chore: formatting

This commit is contained in:
Pieter Vander Vennet 2023-09-21 15:29:34 +02:00
parent 45f3aadef3
commit badfbb60e4
120 changed files with 3330 additions and 1759 deletions

View file

@ -1,10 +1,10 @@
import {OsmConnection} from "./Logic/Osm/OsmConnection";
import { OsmConnection } from "./Logic/Osm/OsmConnection"
console.log("Authorizing...");
new OsmConnection().finishLogin(previousURL => {
const fallback = window.location.protocol+"//"+window.location.host+"/index.html"
console.log("Authorizing...")
new OsmConnection().finishLogin((previousURL) => {
const fallback = window.location.protocol + "//" + window.location.host + "/index.html"
previousURL ??= fallback
if(previousURL.indexOf("/land") > 0){
if (previousURL.indexOf("/land") > 0) {
previousURL = fallback
}
console.log("Redirecting to", previousURL)