fix file reader

This commit is contained in:
Xuan Sang LE
2018-03-01 19:33:36 +01:00
parent 080e2c95ae
commit 7911f259b1
3 changed files with 7 additions and 6 deletions

View File

@ -67,7 +67,7 @@ class Preview extends this.OS.GUI.BaseApplication
.catch (err) ->
me.error "Cannot render the PDF file"
me._api.loaded q, "FAIL"
, "blob"
, "binary"
renderImage: (file) ->
me = @
@ -88,7 +88,7 @@ class Preview extends this.OS.GUI.BaseApplication
console.log canvas.width, canvas.height
context.drawImage img, 0, 0
me.setStatus "#{file.info.name} (#{file.info.size} Kb) - #{img.width}x#{img.height}"
, "blob"
, "binary"
menu: () ->
me = @