Skip to content

Commit

Permalink
Merge branch 'main' into examples-develop-speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Mar 11, 2024
2 parents 5df69d5 + dcb7793 commit ca9a4d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/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
2 changes: 1 addition & 1 deletion examples/src/app/paths.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const href = typeof location !== 'undefined' ? location.href : '';
const url = new URL(href);
const root = url.pathname.replace(/\/[^/]+\.html$/g, '');
const root = url.pathname.replace(/\/([^/]+\.html)?$/g, '');

export const assetPath = root + '/static/assets/';

Expand Down

0 comments on commit ca9a4d5

Please sign in to comment.