' +
+ '
Spot ' + (index + 1) + ':
' +
+ '
' + JSON.stringify(spot, null, 2) + '
' +
+ '
Textarea Info:
' +
+ '
' + JSON.stringify(textareaInfo, null, 2) + '
' +
+ '
';
+ }
+
+ function updateCommentSpotDisplay() {
+ const enhanced = window.gitcassoTextareaRegistry ? window.gitcassoTextareaRegistry.getAllEnhanced() : [];
+
+ console.log('Enhanced textareas:', enhanced.length);
+ console.log('All textareas on page:', document.querySelectorAll('textarea').length);
+
+ const content = enhanced.length > 0
+ ? 'No CommentSpots detected yet...
Textareas found: ' + document.querySelectorAll('textarea').length + '
';
+
+ commentSpotDisplay.innerHTML = content;
+ }
+
+ // Initial update
+ setTimeout(updateCommentSpotDisplay, 100);
+
+ // Update display periodically
+ setInterval(updateCommentSpotDisplay, 2000);
+
+ document.body.appendChild(commentSpotDisplay);
`
if (!html.includes('