Don't open second window when launching a second time

This commit is contained in:
Dan Stillman 2023-05-24 02:21:24 -04:00
parent 0734f6d55b
commit 9da76eab43

View file

@ -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