Return the data instead of the file
parent
21b7024ff1
commit
0d06ed6ad3
|
|
@ -397,7 +397,7 @@ async function loadPromptShortcut(file_name) {
|
|||
if (file.isFile) {
|
||||
await file.write('{}', {append: false});
|
||||
data = {};
|
||||
return file;
|
||||
return data
|
||||
}
|
||||
console.warn(e)
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue