File tree Expand file tree Collapse file tree
saaslaunchpad-chrome-extension/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const observer = new MutationObserver((mutations) => {
5959} )
6060
6161// Enable the content script by default
62- const keys = [ "enabled" , "item" ]
62+ const keys = [ "enabled" , "item" , "excludeHost" ]
6363
6464function observe ( ) {
6565 // Only start observing the DOM if the extension is enabled and there is text to blur
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ chrome.storage.sync.get(null, (data) => {
88 ) as HTMLInputElement
99 input . value = excludeHost
1010 input . addEventListener ( "change" , ( event ) => {
11+ console . log ( "event" , event . target )
1112 if ( event . target instanceof HTMLInputElement ) {
1213 const updatedExcludeWebsite = event . target . value
1314 const updatedConfig : StoredConfig = { excludeHost : updatedExcludeWebsite }
@@ -19,6 +20,7 @@ chrome.storage.sync.get(null, (data) => {
1920 const message : Message = { excludeHost : updatedExcludeWebsite }
2021 for ( const tab of tabs ) {
2122 if ( tab . id !== undefined ) {
23+ console . log ( "tab" , tab )
2224 chrome . tabs
2325 . sendMessage ( tab . id , message )
2426 . catch ( ( ) => {
You can’t perform that action at this time.
0 commit comments