File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
starters/chrome/extension Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ chrome.runtime.onInstalled.addListener(details => {
1818
1919// Sync settings to activated tabs
2020chrome . tabs . onActivated . addListener ( activeInfo =>
21- chrome . tabs . sendMessage ( activeInfo . tabId , { action : 'syncconfigToUI ' } ) )
21+ chrome . tabs . sendMessage ( activeInfo . tabId , { action : 'syncConfigToUI ' } ) )
You can’t perform that action at this time.
0 commit comments