Skip to content

Commit

Permalink
updated with path resolution fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Mar 11, 2024
1 parent 84e21e1 commit 45d4ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iframe/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import config from '@examples/config';
const href = window.top?.location.href ?? '';
const params = getQueryParams(href);
const url = new URL(href);
const root = url.pathname.replace(/\/[^/]+\.html$/g, '');
const root = url.pathname.replace(/\/([^/]+\.html)?$/g, '');

/**
* @type {string}
Expand Down

0 comments on commit 45d4ee3

Please sign in to comment.