From 7e8bfc5dbd94681794547e0b43032c06438854d0 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 9 Feb 2018 00:14:47 +0100 Subject: [PATCH] remote control: adapt /EDIT* to new ipc --- src/browser/js/app/remote-control.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/js/app/remote-control.js b/src/browser/js/app/remote-control.js index 5432d3fa..765d3eb9 100644 --- a/src/browser/js/app/remote-control.js +++ b/src/browser/js/app/remote-control.js @@ -7,7 +7,7 @@ var callbacks = { if (READ_ONLY) return var [id, json] = args, - newdata = JSON.parseFlex(json), + newdata = typeof json == 'string' ? JSON.parseFlex(json) : json, widgets = widgetManager.getWidgetById(id) if (!widgets.length) return @@ -29,7 +29,7 @@ var callbacks = { if (READ_ONLY) return var [id, json] = args, - newdata = JSON.parseFlex(json), + newdata = typeof json == 'string' ? JSON.parseFlex(json) : json, widgets = widgetManager.getWidgetById(id) if (!widgets.length) return