Merge branch 'merge_404' into master

master
Abdullah Alfaraj 2023-11-29 08:41:43 +03:00
commit 209eaea5ed
1 changed files with 6 additions and 0 deletions

View File

@ -393,6 +393,12 @@ async function loadPromptShortcut(file_name) {
return json
}
} catch (e) {
const file = await folder.createFile('prompt_shortcut.json', {type: storage.types.file, overwrite: true});
if (file.isFile) {
await file.write('{}', {append: false});
data = {};
return data
}
console.warn(e)
return {}
}