commit 580d0df56dcc64fd55c59d1c12fb2f9ff2cda2bb
parent 22e9eb6ea89b4906e8c13513beb8df6c21330be8
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 17 Aug 2011 08:31:34 +0000
Set toolkit.singletonWindowType pref instead of preventing default command line actions to prevent opening new windows
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git 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);