Skip to content

Commit

Permalink
Added destructuring to arrays in multi-arg settings.load()s for pro…
Browse files Browse the repository at this point in the history
…per load ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Nov 21, 2024
1 parent d604e88 commit 2d78203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions chromium/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
})

// Init CONFIG
await settings.load('extensionDisabled', Object.keys(settings.controls))
await settings.load('extensionDisabled', ...Object.keys(settings.controls))

// Define FUNCTIONS

Expand Down Expand Up @@ -58,7 +58,7 @@
}

async function syncStorageToUI() { // on toolbar popup toggles + ChatGPT tab activations
await settings.load('extensionDisabled', Object.keys(settings.controls))
await settings.load('extensionDisabled', ...Object.keys(settings.controls))
if (!config.extensionDisabled && checkContinueBtn.status != 'active') checkContinueBtn()
}

Expand Down
2 changes: 1 addition & 1 deletion firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

async function syncStorageToUI() { // on toolbar popup toggles + ChatGPT tab activations
await settings.load('extensionDisabled', Object.keys(settings.controls))
await settings.load('extensionDisabled', ...Object.keys(settings.controls))
if (!config.extensionDisabled && checkContinueBtn.status != 'active') checkContinueBtn()
}

Expand Down

0 comments on commit 2d78203

Please sign in to comment.