From 9aea88da3255a470e1833de5d356a159cd9bea0e Mon Sep 17 00:00:00 2001 From: kumavis Date: Sun, 22 May 2016 18:21:34 -0700 Subject: multiplex - rename control to autoreload --- app/scripts/contentscript.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/scripts/contentscript.js') diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index 1b7b98ec9..43ae5bc98 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -25,14 +25,14 @@ pluginStream.on('error', console.error.bind(console)) // forward communication plugin->inpage pageStream.pipe(pluginStream).pipe(pageStream) -// connect contentscript->inpage control stream +// connect contentscript->inpage reload stream var mx = ObjectMultiplex() mx.on('error', console.error.bind(console)) mx.pipe(pageStream) -var controlStream = mx.createStream('control') -controlStream.on('error', console.error.bind(console)) +var reloadStream = mx.createStream('reload') +reloadStream.on('error', console.error.bind(console)) // if we lose connection with the plugin, trigger tab refresh pluginStream.on('close', function(){ - controlStream.write({ method: 'reset' }) + reloadStream.write({ method: 'reset' }) }) \ No newline at end of file -- cgit v1.2.3