commit 67c81db102aa328c8488ca9d93367f8714ce4120 parent 5710fbc530e371c0f47f2b6f6d5756971097c13e Author: Simon Kornblith <simon@simonster.com> Date: Sun, 3 Jul 2011 03:07:01 +0000 Fix IPC on Windows by making SendMessage() call return immediately Diffstat:
| M | components/zotero-service.js | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/components/zotero-service.js b/components/zotero-service.js @@ -338,11 +338,12 @@ ZoteroCommandLineHandler.prototype = { } // handler for Windows IPC commands - var param = cmdLine.handleFlagWithParam("ZoteroIPC", false); - if(param) { + var ipcParam = cmdLine.handleFlagWithParam("ZoteroIPC", false); + if(ipcParam) { // Don't open a new window cmdLine.preventDefault = true; - this.Zotero.IPC.parsePipeInput(param); + var Zotero = this.Zotero; + Zotero.setTimeout(function() { Zotero.IPC.parsePipeInput(ipcParam) }, 0); } // special handler for "zotero" URIs at the command line to prevent them from opening a new