mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
filter out known flags that should not be passed to python. fixes #61
This commit is contained in:
parent
b8d388fa56
commit
e9a9e9f831
1 changed files with 3 additions and 1 deletions
|
|
@ -99,7 +99,9 @@ function getDefaultReticulumConfigDir() {
|
|||
app.whenReady().then(async () => {
|
||||
|
||||
// get arguments passed to application, and remove the provided application path
|
||||
const userProvidedArguments = process.argv.slice(1);
|
||||
const ignoredArguments = ["--no-sandbox"];
|
||||
const userProvidedArguments = process.argv.slice(1)
|
||||
.filter(arg => !ignoredArguments.includes(arg));
|
||||
const shouldLaunchHeadless = userProvidedArguments.includes("--headless");
|
||||
|
||||
if(!shouldLaunchHeadless){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue