Don't open second window when launching a second time
This commit is contained in:
parent
0734f6d55b
commit
9da76eab43
1 changed files with 6 additions and 0 deletions
|
@ -297,6 +297,12 @@ function modify_omni {
|
|||
|
||||
# Remove WebExtension APIs
|
||||
remove_line ext-browser.json components/components.manifest
|
||||
|
||||
# Don't open a second window if app is already open when launching .exe (Windows) or running via
|
||||
# command line (macOS)
|
||||
replace_line 'function dch_handle\(cmdLine\) \{' 'function dch_handle(cmdLine) {
|
||||
if (cmdLine.state == Ci.nsICommandLine.STATE_REMOTE_AUTO) { return; }
|
||||
' modules/BrowserContentHandler.jsm
|
||||
}
|
||||
|
||||
mkdir -p xulrunner
|
||||
|
|
Loading…
Reference in a new issue