fix gdrive

This commit is contained in:
Xuan Sang LE 2018-03-01 00:06:29 +01:00
parent 1e9674c342
commit fb29ce4e43

View File

@ -21,6 +21,8 @@ class GoogleDriveHandler extends this.OS.API.VFS.BaseFileHandler
gapi.auth2.getAuthInstance().signIn()
if _API.libready @setting.apilink
gapi.auth2.getAuthInstance().isSignedIn.listen (r) ->
fn(r)
fn(gapi.auth2.getAuthInstance().isSignedIn.get())
else
_API.require @setting.apilink, () ->