Jelajahi Sumber

Removed unneeded code.

Mr.doob 9 bulan lalu
induk
melakukan
d7bdef587e
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      devtools/background.js

+ 0 - 2
devtools/background.js

@@ -32,8 +32,6 @@ chrome.runtime.onConnect.addListener( port => {
 		if ( tabId ) {
 		if ( tabId ) {
 
 
 			connections.delete( tabId );
 			connections.delete( tabId );
-			// Clear badge if devtools panel is closed for this tab
-			chrome.action.setBadgeText( { tabId: tabId, text: '' } ).catch( () => { /* Tab might be gone */ } );
 
 
 		}
 		}
 
 

粤ICP备19079148号