Skip to content

Commit

Permalink
fix relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikGlinka committed Feb 26, 2024
1 parent 28cab46 commit 915970f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/rejseplanen/rejseplanen.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Rejseplanen {

async init() {

const path = window.location.pathname.replace(/^\/(.*)\/$/, '$1');
const path = window.location.pathname.replace(/^(\/.*\.html)$/, '');

this.#stops = await Csv.load(
path + this.#dataUrls.base + this.#dataUrls.stops,
Expand Down

0 comments on commit 915970f

Please sign in to comment.