Skip to content

Commit

Permalink
Fix router location address
Browse files Browse the repository at this point in the history
  • Loading branch information
GalenReich committed Sep 2, 2024
1 parent bd9dd61 commit abee767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Router {
this.db = db;
this.allowedParams = module.config().allowedParams;
this.defaultCoords = module.config().defaultCoords;
this.locationAddress = window.location.protocol + "//" + window.location.pathname;
this.locationAddress = window.location.origin == "null" ? "" : window.location.origin + window.location.pathname;
}

/**
Expand Down

0 comments on commit abee767

Please sign in to comment.