From f23552831c5f2310a3afa4b16198e06a7283a069 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 20 Feb 2019 12:16:17 -0500 Subject: manage auth by background.js; fix bugs --- src/msg.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/msg.ts') diff --git a/src/msg.ts b/src/msg.ts index daef6f9..c43e80f 100644 --- a/src/msg.ts +++ b/src/msg.ts @@ -9,7 +9,12 @@ export enum MsgType { updateConfig = "updateConfig", getConfig = "getConfig", getGraphData = "getGraphData", - clearCache = "clearCache" + clearCache = "clearCache", + fetchCalendars = "fetchCalendars", + fetchColors = "fetchColors", + login = "login", + logout = "logout", + getLoggedIn = "getLoggedIn" } function stringifyMsgType(opt: MsgType): string { return MsgType[opt]; } @@ -25,6 +30,11 @@ function parseMsgType(s: string): MsgType { case "getConfig": return MsgType.getConfig; case "getGraphData": return MsgType.getGraphData; case "clearCache": return MsgType.clearCache; + case "fetchCalendars": return MsgType.fetchCalendars; + case "fetchColors": return MsgType.fetchColors; + case "login": return MsgType.login; + case "logout": return MsgType.logout; + case "getLoggedIn": return MsgType.getLoggedIn; default: console.error(`unknown MsgType: ${s}`); } } -- cgit v1.2.3-70-g09d2