From 4a41575e6ddb731ebba1935c1ea89f0f36373798 Mon Sep 17 00:00:00 2001 From: ansuz Date: Sun, 17 Apr 2016 14:05:05 +0200 Subject: [PATCH] accept onLocal in config --- www/common/RealtimeTextarea.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/RealtimeTextarea.js b/www/common/RealtimeTextarea.js index 96be72529..bbfcecce5 100644 --- a/www/common/RealtimeTextarea.js +++ b/www/common/RealtimeTextarea.js @@ -94,6 +94,7 @@ define([ /* end websocket stuff */ var start = module.exports.start = function (config) { + var websocketUrl = config.websocketURL; var userName = config.userName; var channel = config.channel; @@ -153,8 +154,8 @@ define([ // super important step that avoids us having // the 'backspace bug' - if (toReturn.onLocal) { - toReturn.onLocal(); + if (config.onLocal) { + config.onLocal(); } realtime.message(message);