From 580d0df56dcc64fd55c59d1c12fb2f9ff2cda2bb Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 17 Aug 2011 08:31:34 +0000 Subject: [PATCH] Set toolkit.singletonWindowType pref instead of preventing default command line actions to prevent opening new windows --- components/zotero-service.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/zotero-service.js b/components/zotero-service.js index 22a2f6e3a..21c65feb7 100644 --- a/components/zotero-service.js +++ b/components/zotero-service.js @@ -353,9 +353,6 @@ ZoteroCommandLineHandler.prototype = { if(isStandalone()) { var param = cmdLine.handleFlagWithParam("url", false); if(param) { - // don't open a new window - cmdLine.preventDefault = true; - var uri = cmdLine.resolveURI(param); if(uri.schemeIs("zotero")) { // Check for existing window and focus it @@ -374,9 +371,6 @@ ZoteroCommandLineHandler.prototype = { var param = cmdLine.handleFlagWithParam("file", false); if(param) { - // don't open a new window - cmdLine.preventDefault = true; - var file = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); file.initWithPath(param);