File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed
Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 121121 // no embedder to answer us
122122 }
123123 log ( "STARTED" ) ;
124- await include ( "/bg/popupHandler.js" ) ;
125124 } ;
126125
127126 const Commands = {
Original file line number Diff line number Diff line change 2020
2121browser . runtime . onConnect . addListener ( port => {
2222 if ( port . name === "noscript.popup" ) {
23+ console . debug ( "Creating popupHandler port" ) ; // DEV_ONLY
2324 ns . popupOpened = true ;
2425 let pendingReload = false ;
2526 let tabId = - 1 ;
2627 port . onMessage . addListener ( m => {
28+ console . debug ( "popupHandler message" , m ) ; // DEV_ONLY
2729 if ( "pendingReload" in m ) {
2830 tabId = m . tabId ;
2931 pendingReload = m . pendingReload ;
Original file line number Diff line number Diff line change 8282 " bg/TabGuard.js" ,
8383 " bg/RequestGuard.js" ,
8484 " bg/Settings.js" ,
85+ " bg/popupHandler.js" ,
8586 " bg/main.js" ,
8687 " common/themes.js"
8788 ],
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ addEventListener("unload", e => {
9898 } )
9999
100100 port = browser . runtime . connect ( { name : "noscript.popup" } ) ;
101+ console . debug ( "popupHandler port connecting" ) ; // DEV_ONLY
101102 await UI . init ( pageTab ) ;
102103
103104 function pendingReload ( b ) {
You can’t perform that action at this time.
0 commit comments