From 29e7a323d26e985f47015ad8b64315fe8afa5b72 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 14 Aug 2024 12:13:14 +0200 Subject: feat: parse commandLine of secondary instances --- src/modules/protocol.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/protocol.js') diff --git a/src/modules/protocol.js b/src/modules/protocol.js index a40b67e..7f2f7c0 100644 --- a/src/modules/protocol.js +++ b/src/modules/protocol.js @@ -3,11 +3,11 @@ const { app } = require("electron"); const win = require("../win"); const version = require("./version"); -module.exports = async () => { +module.exports = async (argv) => { if (version.northstar() == "unknown") return; - const args = process.argv.slice(app.isPackaged ? 1 : 2); + const args = argv || process.argv; for (const key of args) { if (key.startsWith("ror2mm://")) { -- cgit v1.2.3