diff --git a/ReactNativeClient/lib/BaseApplication.js b/ReactNativeClient/lib/BaseApplication.js index f21845458..e59682fc6 100644 --- a/ReactNativeClient/lib/BaseApplication.js +++ b/ReactNativeClient/lib/BaseApplication.js @@ -170,6 +170,12 @@ class BaseApplication { continue; } + if (arg.indexOf('--remote-debugging-port=') === 0) { + // Electron-specific flag used for debugging - ignore it. Electron expects this flag in '--x=y' form, a single string. + argv.splice(0, 1); + continue; + } + if (arg.length && arg[0] == '-') { throw new JoplinError(_('Unknown flag: %s', arg), 'flagError'); } else {