File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
} from '$lib/data/stores' ;
11
11
import { refs , audioPlayer as audioPlayerStore , audioPlayerDefault } from '$lib/data/stores' ;
12
12
import { MRUCache } from '$lib/data/mrucache' ;
13
+ import { base } from '$app/paths' ;
13
14
interface AudioPlayer {
14
15
audio : HTMLAudioElement ;
15
16
loaded : boolean ;
@@ -388,7 +389,7 @@ export async function getAudioSourceInfo(item: {
388
389
//parse timing file
389
390
const timing = [ ] ;
390
391
if ( audio . timingFile ) {
391
- const timeFilePath = `/timings/${ audio . timingFile } ` ;
392
+ const timeFilePath = `${ base } /timings/${ audio . timingFile } ` ;
392
393
const response = await fetch ( timeFilePath ) ;
393
394
if ( ! response . ok ) {
394
395
throw new Error ( 'Failed to read file' ) ;
You can’t perform that action at this time.
0 commit comments