This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,19 @@ class GoogleDriveUtil {
58
58
. then (
59
59
( ) => {
60
60
this . auth = gapi . auth2 . getAuthInstance ( ) ;
61
- console . log ( this . auth ) ;
62
- console . log ( this . auth . isSignedIn ) ;
63
- this . auth . isSignedIn . listen ( isLoggedIn => this . updateLoginStatus ( isLoggedIn ) ) ;
64
- this . updateLoginStatus ( this . auth . isSignedIn . get ( ) ) ;
65
- globalObserver . emit ( 'googledrive.initialized' , true ) ;
61
+ if ( this . auth . isSignedIn != null ) {
62
+ this . auth . isSignedIn . listen ( isLoggedIn => this . updateLoginStatus ( isLoggedIn ) ) ;
63
+ this . updateLoginStatus ( this . auth . isSignedIn . get ( ) ) ;
64
+ globalObserver . emit ( 'googledrive.initialized' , true ) ;
66
65
67
- $ ( '#integrations' ) . removeClass ( 'invisible' ) ;
68
- $ ( '#save-google-drive' )
69
- . parent ( )
70
- . removeClass ( 'invisible' ) ;
71
- $ ( '#load-google-drive' )
72
- . parent ( )
73
- . removeClass ( 'invisible' ) ;
66
+ $ ( '#integrations' ) . removeClass ( 'invisible' ) ;
67
+ $ ( '#save-google-drive' )
68
+ . parent ( )
69
+ . removeClass ( 'invisible' ) ;
70
+ $ ( '#load-google-drive' )
71
+ . parent ( )
72
+ . removeClass ( 'invisible' ) ;
73
+ }
74
74
} ,
75
75
error => errLogger ( error , translate ( 'There was an error initialising Google Drive.' ) )
76
76
) ;
You can’t perform that action at this time.
0 commit comments