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

@ -161,7 +161,7 @@ class GoogleDriveHandler extends this.OS.API.VFS.BaseFileHandler
}
.then (r) ->
_API.loaded q, "OK"
return f r.body unless p is "blob"
return f r.body unless p is "binary"
bytes = []
for i in [0..(r.body.length - 1)]
bytes.push r.body.charCodeAt i