We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 220b835 commit 0805bdaCopy full SHA for 0805bda
2 files changed
browser-extension/src/datamodel/registries.ts
@@ -32,7 +32,7 @@ export class EnhancerRegistry {
32
return null
33
}
34
35
- identifyTextarea(textarea: HTMLTextAreaElement): EnhancedTextarea<any> | null {
+ tryToEnhance(textarea: HTMLTextAreaElement): EnhancedTextarea<any> | null {
36
for (const handler of this.enhancers) {
37
try {
38
const result = handler.tryToEnhance(textarea)
browser-extension/src/entrypoints/content.ts
@@ -73,7 +73,7 @@ function enhanceMaybe(textarea: HTMLTextAreaElement) {
73
injectStyles()
74
75
// Use registry to identify and handle this specific textarea
76
- const enhancedTextarea = enhancers.identifyTextarea(textarea)
+ const enhancedTextarea = enhancers.tryToEnhance(textarea)
77
if (enhancedTextarea) {
78
logger.debug(
79
'Identified textarea:',
0 commit comments