Set toolkit.singletonWindowType pref instead of preventing default command line actions to prevent opening new windows
This commit is contained in:
parent
22e9eb6ea8
commit
580d0df56d
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue