From e508f0676547732b9905839fe37418392cdc82e3 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 5 Feb 2018 11:50:25 +0000 Subject: [PATCH] Add asset add / remove messaging clauses. --- src/ScalarMessaging.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index 9a57ab5bce..0fa342e69f 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -624,6 +624,12 @@ const onMessage = function(event) { } else if (event.data.action === "set_widget") { setWidget(event, roomId); return; + } else if (event.data.action === "add_widget_asset") { + addWidgetAsset(event, roomId); + return; + } else if (event.data.action === "remove_widget_asset") { + removeWidgetAsset(event, roomId); + return; } if (!roomId) {