We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc2dd3 commit d86d85dCopy full SHA for d86d85d
1 file changed
custom/composables/agentAudio/utils.ts
@@ -38,7 +38,10 @@ export async function unlockAudio() {
38
}
39
40
export async function startStandByAudio() {
41
- const standByAudio = '/plugins/AdminForthAgentPlugin/agentAudio/agent-processing.mp3';
+ const standByAudio = new URL(
42
+ '../../public/agentAudio/agent-processing.mp3',
43
+ import.meta.url
44
+ ).href;
45
const response = await fetch(standByAudio);
46
console.log('status', response.status);
47
console.log('content-type', response.headers.get('content-type'));
0 commit comments