From e5729baa785c3a85d02d8315817e3a57f7c5fcb9 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 10 Feb 2019 01:39:31 -0500 Subject: popup works --- src/msg.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/msg.js') 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"); } } -- cgit v1.2.3-70-g09d2