diff --git a/lib/browser/api/app.js b/lib/browser/api/app.js index c6ad57321baa..a3d227b07961 100644 --- a/lib/browser/api/app.js +++ b/lib/browser/api/app.js @@ -24,8 +24,20 @@ Object.assign(app, { return Menu.getApplicationMenu() }, commandLine: { - appendSwitch: bindings.appendSwitch, - appendArgument: bindings.appendArgument + appendSwitch() { + let castedArgs = [...arguments].map((arg) => { + return typeof arg !== 'string' ? `${arg}` : arg + }) + + return binding.appendSwitch(...castedArgs) + }, + appendArgument() { + let castedArgs = [...arguments].map((arg) => { + return typeof arg !== 'string' ? `${arg}` : arg + }) + + return binding.appendArgument(...castedArgs) + } } })