fix(extra-info): remove unused code
There was some left-over code from the canned responses injections. This
caused the content script to stop working in the Community Console when
loading the CRs list.
Bug: twpowertools:93
Change-Id: I6b33a9034229edec3835187a468d3071056060f9
diff --git a/src/contentScripts/communityConsole/main.js b/src/contentScripts/communityConsole/main.js
index 08ff125..af69cbe 100644
--- a/src/contentScripts/communityConsole/main.js
+++ b/src/contentScripts/communityConsole/main.js
@@ -58,10 +58,8 @@
// Unified profile iframe
'iframe',
- // Canned response tags or toolbelt (for the extra info feature and the
- // "import CR" popup for the workflows feature)
+ // Canned response tags (for the "import CR" popup for the workflows feature)
'ec-canned-response-row .tags',
- 'ec-canned-response-row .main .toolbelt',
// Question state chips container (for the extra info feature)
'sc-tailwind-thread-question-question-card sc-tailwind-thread-question-state-chips',
@@ -185,17 +183,11 @@
unifiedProfilesFix.fixIframe(node);
}
- // Show additional details in the canned responses view (and add the
- // "import" button if applicable for the workflows feature).
+ // Add the "import" button in the canned responses view for the workflows
+ // feature if applicable.
if (node.matches('ec-canned-response-row .tags')) {
- window.TWPTExtraInfo.injectAtCRIfEnabled(node, /* isExpanded = */ false);
window.TWPTWorkflowsImport.addButtonIfEnabled(node);
}
- if (node.matches('ec-canned-response-row .main .toolbelt')) {
- const tags = node.parentNode?.querySelector?.('.tags');
- if (tags)
- window.TWPTExtraInfo.injectAtCRIfEnabled(tags, /* isExpanded = */ true);
- }
// Show additional details in the thread view.
if (node.matches(