Don't pop up a message when running conflicting Zotero versions simultaneously
This commit is contained in:
parent
70371a868b
commit
59459df0ff
1 changed files with 1 additions and 7 deletions
|
@ -89,11 +89,7 @@ Zotero.Integration = new function() {
|
||||||
// destroy old pipe, if one exists
|
// destroy old pipe, if one exists
|
||||||
try {
|
try {
|
||||||
if(_fifoFile.exists()) {
|
if(_fifoFile.exists()) {
|
||||||
if(_fifoFile.isSpecial() && Zotero.IPC.safePipeWrite(_fifoFile.path, "Zotero test\n")) {
|
Zotero.IPC.safePipeWrite(_fifoFile.path, "Zotero shutdown\n");
|
||||||
Zotero.debug("Integration pipe already open by another instance; not initializing integration pipe");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_fifoFile.remove(false);
|
_fifoFile.remove(false);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -201,8 +197,6 @@ Zotero.Integration = new function() {
|
||||||
*/
|
*/
|
||||||
function _parseIntegrationPipeCommand(string) {
|
function _parseIntegrationPipeCommand(string) {
|
||||||
if(string != "") {
|
if(string != "") {
|
||||||
if(string === "Zotero test\n") return;
|
|
||||||
|
|
||||||
// exec command if possible
|
// exec command if possible
|
||||||
var parts = string.match(/^([^ \n]*) ([^ \n]*)(?: ([^\n]*))?\n?$/);
|
var parts = string.match(/^([^ \n]*) ([^ \n]*)(?: ([^\n]*))?\n?$/);
|
||||||
if(parts) {
|
if(parts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue