diff options
Diffstat (limited to 'src/Analyze.tsx')
-rw-r--r-- | src/Analyze.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Analyze.tsx b/src/Analyze.tsx index b272f30..e7563d5 100644 --- a/src/Analyze.tsx +++ b/src/Analyze.tsx @@ -77,9 +77,14 @@ class Analyze extends React.Component<AnalyzeProps> { this.setState({ calendars: msg.data }); }); - gapi.getLoggedIn().then(b => !b && - this.openSnackbar('Not logged in. Operating in offline mode.', - 'warning' as SnackbarVariant)); + this.msgClient.sendMsg({ + opt: MsgType.getLoggedIn, + data: {} + }).then(msg => { + if (!msg.data) + this.openSnackbar('Not logged in. Operating in offline mode.', + 'warning' as SnackbarVariant); + }); this.dialogPromiseResolver = null; } |