aboutsummaryrefslogtreecommitdiff
path: root/src/msg.js
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-02-10 20:01:42 -0500
committerDeterminant <ted.sybil@gmail.com>2019-02-10 20:01:42 -0500
commit8a0f7d58a136e87f71b790bbbb489af111472796 (patch)
tree3619963a184bf48f56601cee783eceda861e484f /src/msg.js
parentbc097c38fa76563e7361b2193508a8ce13d73cae (diff)
render graph data in background; other improvements
Diffstat (limited to 'src/msg.js')
-rw-r--r--src/msg.js6
1 files changed, 5 insertions, 1 deletions
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");
}
}