www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit afd758f509d48f310503cc842d161fcfac93b164
parent 8e7d467ddf144cc34e7fb357c47ee28555aa230c
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu, 24 Jun 2010 09:54:46 +0000

support additional parameters in integration pipe
(these are not urgent, and i don't actually plan on using them at the present, but they might be a good idea)


Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -123,9 +123,9 @@ Zotero.Integration = new function() { fifoStream.readLine(line); fifoStream.close(); - var spaceIndex = line.value.indexOf(" "); - var agent = line.value.substr(0, spaceIndex); - var cmd = line.value.substr(spaceIndex+1); + var parts = line.value.split(" "); + var agent = parts[0]; + var cmd = parts[1]; if(agent == "Zotero" && cmd == "shutdown") return; main.dispatch(new mainThread(agent, cmd), background.DISPATCH_NORMAL); }