fix some package

This commit is contained in:
Xuan Sang LE
2020-05-21 22:24:30 +02:00
parent d62bafae48
commit 5f34a9775d
10 changed files with 8 additions and 6 deletions

View File

@ -7,7 +7,7 @@ class TinyEditor extends this.OS.GUI.BaseApplication
@bindKey "ALT-N", () => @newFile()
@bindKey "ALT-O", () => @openFile()
@bindKey "CTRL-S", () => @saveFile()
@filehandle = if @args and @args.length > 0 then @args[0].asFileHandle() else null
@filehandle = if @args and @args.length > 0 then @args[0].path.asFileHandle() else null
$(@editor).on 'input', (e) =>
return if @filehandle.dirty is true
@filehandle.dirty = true