File tree Expand file tree Collapse file tree
js/blocks/autoFind/autoFindProvider Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " jdi-react-extension" ,
3- "version" : " 3.0.11 " ,
3+ "version" : " 3.0.12 " ,
44 "description" : " jdi react extension" ,
55 "scripts" : {
66 "start" : " npm run webpack" ,
Original file line number Diff line number Diff line change @@ -70,14 +70,16 @@ export const highlightElements = (
7070} ;
7171
7272export const setUrlListener = ( onHighlightOff ) => {
73- chrome . tabs . onUpdated . addListener ( ( tabId , changeinfo , tab ) => {
74- if ( changeinfo && changeinfo . status === "complete" ) {
75- urlListenerScriptExists = false ;
76- generationScriptExists = false ;
77- port = null ;
78- onHighlightOff ( ) ;
79- }
80- } ) ;
73+ getPageId ( ( currentTabId ) =>
74+ chrome . tabs . onUpdated . addListener ( ( tabId , changeinfo , tab ) => {
75+ if ( changeinfo && changeinfo . status === "complete" && currentTabId === tabId ) {
76+ urlListenerScriptExists = false ;
77+ generationScriptExists = false ;
78+ port = null ;
79+ onHighlightOff ( ) ;
80+ }
81+ } )
82+ ) ;
8183
8284 if ( ! urlListenerScriptExists ) {
8385 runContentScript ( urlListener , ( ) => {
Original file line number Diff line number Diff line change 33 "name" : " JDN" ,
44 "description" : " " ,
55 "devtools_page" : " index.html" ,
6- "version" : " 3.0.11 " ,
6+ "version" : " 3.0.12 " ,
77 "permissions" : [
88 " activeTab" ,
99 " tabs" ,
You can’t perform that action at this time.
0 commit comments