mirror of
https://github.com/heyman/heynote.git
synced 2025-03-15 15:48:11 +01:00
Use FileLibrary.load() method to make sure tracking of current buffer content works
This commit is contained in:
parent
d12f6577bf
commit
f6b086b7e6
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user