Fix IPC on Windows by making SendMessage() call return immediately
This commit is contained in:
parent
5710fbc530
commit
67c81db102
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue