initial state should be valid JSON so JSON parse doesn't fail
This commit is contained in:
@@ -148,7 +148,7 @@ define([
|
|||||||
channel, // the channel we're to connect to
|
channel, // the channel we're to connect to
|
||||||
|
|
||||||
// initialState argument. (optional)
|
// initialState argument. (optional)
|
||||||
config.initialState || '',
|
config.initialState || '{}',
|
||||||
|
|
||||||
// transform function (optional), which handles conflicts
|
// transform function (optional), which handles conflicts
|
||||||
{ transformFunction: config.transformFunction });
|
{ transformFunction: config.transformFunction });
|
||||||
|
|||||||
Reference in New Issue
Block a user