From 8a0f7d58a136e87f71b790bbbb489af111472796 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 10 Feb 2019 20:01:42 -0500 Subject: render graph data in background; other improvements --- src/msg.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/msg.js') diff --git a/src/msg.js b/src/msg.js index ce83eb8..2e72ea7 100644 --- a/src/msg.js +++ b/src/msg.js @@ -6,6 +6,7 @@ const _getCalendars = "getCalendars"; const _getCalEvents = "getCalEvents"; const _updateConfig = "updateConfig"; const _getConfig = "getConfig"; +const _getGraphData = "getGraphData"; export const msgType = Object.freeze({ updatePatterns: Symbol(_updatePatterns), @@ -14,7 +15,8 @@ export const msgType = Object.freeze({ getCalendars: Symbol(_getCalendars), getCalEvents: Symbol(_getCalEvents), updateConfig: Symbol(_updateConfig), - getConfig: Symbol(_getConfig) + getConfig: Symbol(_getConfig), + getGraphData: Symbol(_getGraphData), }); function stringifyMsgType(mt) { @@ -26,6 +28,7 @@ function stringifyMsgType(mt) { case msgType.getCalEvents: return _getCalEvents; case msgType.updateConfig: return _updateConfig; case msgType.getConfig: return _getConfig; + case msgType.getGraphData: return _getGraphData; default: console.error("unreachable"); } } @@ -39,6 +42,7 @@ function parseMsgType(s) { case _getCalEvents: return msgType.getCalEvents; case _updateConfig: return msgType.updateConfig; case _getConfig: return msgType.getConfig; + case _getGraphData: return msgType.getGraphData; default: console.error("unreachable"); } } -- cgit v1.2.3