mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 13:31:38 +02: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) {
|
async load(path) {
|
||||||
if (this.files[path]) {
|
if (this.files[path]) {
|
||||||
return this.files[path].read()
|
return this.files[path].load()
|
||||||
}
|
}
|
||||||
const fullPath = fs.realpathSync(join(this.basePath, path))
|
const fullPath = fs.realpathSync(join(this.basePath, path))
|
||||||
this.files[path] = new NoteBuffer({fullPath, library:this})
|
this.files[path] = new NoteBuffer({fullPath, library:this})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user