Skip to content

Commit

Permalink
updated sample loading to use direct path value
Browse files Browse the repository at this point in the history
  • Loading branch information
catapart committed Sep 27, 2023
1 parent 17d5672 commit e6eb41c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-stingrays-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"magnit-synth": patch
---

updated sample loading to use direct path value
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, import.meta.url).href;
const resourcePath = new URL(this.path).href;
const idbResponse = await loadFromCache(resourcePath) as any;
if(idbResponse != null)
{
Expand Down

0 comments on commit e6eb41c

Please sign in to comment.