Skip to content

Commit

Permalink
additional tests for path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
catapart committed Sep 27, 2023
1 parent 74d8748 commit d0a5276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mean-eagles-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"magnit-synth": patch
---

additional tests for path changes
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export namespace MagnitSynth
async load(context: ControllerContext)
{
if(this.isLoaded == true) { console.log('skipped load'); return; }
const resourcePath = new URL(this.path).href;
const resourcePath = this.path;
const idbResponse = await loadFromCache(resourcePath) as any;
if(idbResponse != null)
{
Expand Down

0 comments on commit d0a5276

Please sign in to comment.