Remove firefox-zotero IPC pipe and switching code (#2990)

This commit is contained in:
Adomas Ven 2023-02-14 02:18:40 +02:00 committed by Dan Stillman
parent 2c9e9f8a11
commit ba06db2e19
6 changed files with 4 additions and 317 deletions

View file

@ -531,17 +531,7 @@ ZoteroCommandLineHandler.prototype = {
zContext.Zotero.Integration.execCommand(agent, command, docId, templateVersion);
}
// handler for Windows IPC commands
var ipcParam = cmdLine.handleFlagWithParam("ZoteroIPC", false);
if(ipcParam) {
// Don't open a new window
cmdLine.preventDefault = true;
if (!zContext) new ZoteroService();
let Zotero = zContext.Zotero;
Zotero.setTimeout(() => Zotero.IPC.parsePipeInput(ipcParam), 0);
}
if(isStandalone()) {
var fileToOpen;
// Special handler for "zotero" URIs at the command line to prevent them from opening a new window