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({
24
24
25
25
function handleMutations ( mutations : MutationRecord [ ] ) : void {
26
26
for ( const mutation of mutations ) {
27
- // Handle added nodes
28
27
for ( const node of mutation . addedNodes ) {
29
28
if ( node . nodeType === Node . ELEMENT_NODE ) {
30
29
const element = node as Element
@@ -42,7 +41,6 @@ function handleMutations(mutations: MutationRecord[]): void {
42
41
}
43
42
}
44
43
45
- // Handle removed nodes
46
44
for ( const node of mutation . removedNodes ) {
47
45
if ( node . nodeType === Node . ELEMENT_NODE ) {
48
46
const element = node as Element
@@ -63,7 +61,6 @@ function handleMutations(mutations: MutationRecord[]): void {
63
61
}
64
62
65
63
function enhanceMaybe ( textarea : HTMLTextAreaElement ) {
66
- // Check if this textarea is already registered
67
64
if ( enhancedTextareas . get ( textarea ) ) {
68
65
logger . debug ( 'textarea already registered {}' , textarea )
69
66
return
@@ -72,7 +69,6 @@ function enhanceMaybe(textarea: HTMLTextAreaElement) {
72
69
logger . debug ( 'activating textarea {}' , textarea )
73
70
injectStyles ( )
74
71
75
- // Use registry to identify and handle this specific textarea
76
72
const enhancedTextarea = enhancers . tryToEnhance ( textarea )
77
73
if ( enhancedTextarea ) {
78
74
logger . debug (
You can’t perform that action at this time.
0 commit comments