Fix hardcoded API paths: inject URLs via url_for() in template, read from window.NEUSICIAN_URLS in api.js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { h, ref } from 'vue';
|
||||
import { fetchScoreText, putScoreText } from '../api.js';
|
||||
import { fetchScoreText, putScoreText, URLS } from '../api.js';
|
||||
import { patchScore } from '../exporter.js';
|
||||
import { StatusPoller } from './StatusPoller.js';
|
||||
|
||||
@@ -127,7 +127,7 @@ export const PaneCP = {
|
||||
store.synthesisStatus?.file_accomplished
|
||||
? h('audio', {
|
||||
controls: true,
|
||||
src: '/sompyle/result.mp3',
|
||||
src: URLS.result,
|
||||
style: 'display:block;width:100%;margin-top:0.5rem',
|
||||
}) : null,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user