aboutsummaryrefslogtreecommitdiff
path: root/src/msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.js')
-rw-r--r--src/msg.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msg.js b/src/msg.js
index 25cd53c..ce83eb8 100644
--- a/src/msg.js
+++ b/src/msg.js
@@ -4,6 +4,8 @@ const _getPatterns = "getPatterns";
const _updateCalendars = "updateCalendars";
const _getCalendars = "getCalendars";
const _getCalEvents = "getCalEvents";
+const _updateConfig = "updateConfig";
+const _getConfig = "getConfig";
export const msgType = Object.freeze({
updatePatterns: Symbol(_updatePatterns),
@@ -11,6 +13,8 @@ export const msgType = Object.freeze({
updateCalendars: Symbol(_updateCalendars),
getCalendars: Symbol(_getCalendars),
getCalEvents: Symbol(_getCalEvents),
+ updateConfig: Symbol(_updateConfig),
+ getConfig: Symbol(_getConfig)
});
function stringifyMsgType(mt) {
@@ -20,6 +24,8 @@ function stringifyMsgType(mt) {
case msgType.updateCalendars: return _updateCalendars;
case msgType.getCalendars: return _getCalendars;
case msgType.getCalEvents: return _getCalEvents;
+ case msgType.updateConfig: return _updateConfig;
+ case msgType.getConfig: return _getConfig;
default: console.error("unreachable");
}
}
@@ -31,6 +37,8 @@ function parseMsgType(s) {
case _updateCalendars: return msgType.updateCalendars;
case _getCalendars: return msgType.getCalendars;
case _getCalEvents: return msgType.getCalEvents;
+ case _updateConfig: return msgType.updateConfig;
+ case _getConfig: return msgType.getConfig;
default: console.error("unreachable");
}
}