- No more infinity loops on larger files.
    - Show message on decode error.
  - Refactored:
    - Fixed to avoid obsolete global variables.
This commit is contained in:
vorotamoroz
2023-11-25 02:21:44 +09:00
parent 279b4b41e5
commit bb4b764586
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1306,9 +1306,9 @@ Note: We can always able to read V1 format. It will be progressively converted.
try {
let outFile;
if (mode == "create") {
outFile = await createFile(normalizePath(path), writeData, { ctime: doc.ctime, mtime: doc.mtime, });
outFile = await createFile(this.app,normalizePath(path), writeData, { ctime: doc.ctime, mtime: doc.mtime, });
} else {
await modifyFile(file, writeData, { ctime: doc.ctime, mtime: doc.mtime });
await modifyFile(this.app,file, writeData, { ctime: doc.ctime, mtime: doc.mtime });
outFile = getAbstractFileByPath(getPathFromTFile(file)) as TFile;
}
Logger(msg + path);