Skip to content

Commit

Permalink
Merge pull request #19 from bellingcat/fix-router-location-address
Browse files Browse the repository at this point in the history
Fix router location address
  • Loading branch information
GalenReich authored Sep 2, 2024
2 parents bd9dd61 + abee767 commit 06a5983
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 06a5983

Please sign in to comment.