File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
browser-extension/src/entrypoints Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ export default defineContentScript({
2424
2525function handleMutations ( mutations : MutationRecord [ ] ) : void {
2626 for ( const mutation of mutations ) {
27- // Handle added nodes
2827 for ( const node of mutation . addedNodes ) {
2928 if ( node . nodeType === Node . ELEMENT_NODE ) {
3029 const element = node as Element
@@ -42,7 +41,6 @@ function handleMutations(mutations: MutationRecord[]): void {
4241 }
4342 }
4443
45- // Handle removed nodes
4644 for ( const node of mutation . removedNodes ) {
4745 if ( node . nodeType === Node . ELEMENT_NODE ) {
4846 const element = node as Element
@@ -63,7 +61,6 @@ function handleMutations(mutations: MutationRecord[]): void {
6361}
6462
6563function enhanceMaybe ( textarea : HTMLTextAreaElement ) {
66- // Check if this textarea is already registered
6764 if ( enhancedTextareas . get ( textarea ) ) {
6865 logger . debug ( 'textarea already registered {}' , textarea )
6966 return
@@ -72,7 +69,6 @@ function enhanceMaybe(textarea: HTMLTextAreaElement) {
7269 logger . debug ( 'activating textarea {}' , textarea )
7370 injectStyles ( )
7471
75- // Use registry to identify and handle this specific textarea
7672 const enhancedTextarea = enhancers . tryToEnhance ( textarea )
7773 if ( enhancedTextarea ) {
7874 logger . debug (
You can’t perform that action at this time.
0 commit comments