Skip to content

Commit

Permalink
ARGV -> argv
Browse files Browse the repository at this point in the history
  • Loading branch information
aidant19 committed Jan 11, 2024
1 parent 27fbee6 commit 834c57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/bb-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ BBPlugin.register('bb-cli', {
variant: 'both',
onload() {
console.log('BB-CLI loading...');
let [...ARGV] = electron.getGlobal('process').argv;
let scriptIndicator = ARGV.indexOf('--bb-cli');
let [...argv] = electron.getGlobal('process').argv;
let scriptIndicator = argv.indexOf('--bb-cli');
if (scriptIndicator !== -1) {
const scriptPath = ARGV[scriptIndicator + 1];
const scriptPath = argv[scriptIndicator + 1];
console.log('Importing...', scriptPath);
const script = import(scriptPath);
console.log(script);
Expand Down

0 comments on commit 834c57c

Please sign in to comment.