mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2025-12-22 10:57:12 +00:00
filter out known flags that should not be passed to python. fixes #61
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user