mirror of
https://github.com/heyman/heynote.git
synced 2025-08-26 21:46:29 +02:00
Use FileLibrary.load() method to make sure tracking of current buffer content works
This commit is contained in:
@@ -67,7 +67,7 @@ export class FileLibrary {
|
||||
|
||||
async load(path) {
|
||||
if (this.files[path]) {
|
||||
return this.files[path].read()
|
||||
return this.files[path].load()
|
||||
}
|
||||
const fullPath = fs.realpathSync(join(this.basePath, path))
|
||||
this.files[path] = new NoteBuffer({fullPath, library:this})
|
||||
|
Reference in New Issue
Block a user