forked from MapComplete/MapComplete
Chore: formatting
This commit is contained in:
parent
45f3aadef3
commit
badfbb60e4
120 changed files with 3330 additions and 1759 deletions
10
src/land.ts
10
src/land.ts
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue