Skip to content

Commit 9468f2b

Browse files
committed
Camel-cased syncconfigToUI ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent cf79f9d commit 9468f2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

starters/chrome/extension/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
chrome.runtime.onMessage.addListener(req => {
1515
if (req.action == 'notify') notify(req.msg, req.pos)
1616
else if (req.action == 'alert') siteAlert(req.title, req.msg, req.btns)
17-
else if (req.action == 'syncconfigToUI') syncconfigToUI()
17+
else if (req.action == 'syncConfigToUI') syncConfigToUI()
1818
})
1919

2020
// Init CONFIG
@@ -48,7 +48,7 @@
4848

4949
// Define SYNC function
5050

51-
async function syncconfigToUI() { // on toolbar popup toggles + ChatGPT tab activations
51+
async function syncConfigToUI() { // on toolbar popup toggles + ChatGPT tab activations
5252
await settings.load('extensionDisabled', Object.keys(settings.controls)) // load from Chrome storage to content.js config
5353
if (config.extensionDisabled) {
5454
// Remove all hacks

starters/chrome/extension/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ chrome.runtime.onInstalled.addListener(details => {
1818

1919
// Sync settings to activated tabs
2020
chrome.tabs.onActivated.addListener(activeInfo =>
21-
chrome.tabs.sendMessage(activeInfo.tabId, { action: 'syncconfigToUI' }))
21+
chrome.tabs.sendMessage(activeInfo.tabId, { action: 'syncConfigToUI' }))

0 commit comments

Comments
 (0)