update onlyoffice wrapper

This commit is contained in:
Xuan Sang LE
2021-03-02 17:03:00 +01:00
parent 61584357c1
commit 704e0aa2da
8 changed files with 41 additions and 38 deletions

View File

@ -79,8 +79,7 @@ class OnlyOffice extends this.OS.application.BaseApplication
@access_token = d.result
@currfile.onready()
.then (meta) =>
key = "#{@systemsetting.user.username}:#{@currfile.path}"
# :#{meta.mtime}
key = "#{@systemsetting.user.username}:#{@currfile.path}:#{meta.mtime}"
key = key.hash().toString()
@scheme.apptitle = @currfile.path
$(@placeholder).empty()
@ -136,6 +135,7 @@ class OnlyOffice extends this.OS.application.BaseApplication
as: file
}).then (r) =>
return @error r.error if r.error
return if @getDocType(file.asFileHandle().ext) is "none"
@currfile = file.asFileHandle()
@open()
.catch (e) =>