From df78d284c4e0ab3b66fc51583bb76b1a6929b303 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 1 Apr 2016 10:44:23 +0200 Subject: [PATCH] initial state should be valid JSON so JSON parse doesn't fail --- www/_socket/realtime-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/_socket/realtime-input.js b/www/_socket/realtime-input.js index 06caa1c5d..565200aba 100644 --- a/www/_socket/realtime-input.js +++ b/www/_socket/realtime-input.js @@ -148,7 +148,7 @@ define([ channel, // the channel we're to connect to // initialState argument. (optional) - config.initialState || '', + config.initialState || '{}', // transform function (optional), which handles conflicts { transformFunction: config.transformFunction });