This commit is contained in:
Horis committed 2024-04-19 20:35:45 +08:00
1 parent 3d1d1194f0
commit 5a8ee8d4f8
1 file changed
+5
@@ -41,7 +41,12 @@ const appendDebugMsg = (msg) => {
}; };
const startDebug = async () => { const startDebug = async () => {
printDebug.value = ""; printDebug.value = "";
try {
await API.saveSource(store.currentSource); await API.saveSource(store.currentSource);
} catch (e) {
store.debugFinish()
throw e
}
API.debug( API.debug(
store.currentSourceUrl, store.currentSourceUrl,
searchKey.value || store.searchKey, searchKey.value || store.searchKey,