summaryrefslogtreecommitdiff
path: root/plugins/shorten_expanded/init.js
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-14 19:13:51 -0500
committerGitHub <noreply@github.com>2025-10-14 19:13:51 -0500
commit703d310e400f1f4162d4e38afa3f5bf5169c5377 (patch)
treeb4ab637f1b25aae25cd10604468d509bbe26246e /plugins/shorten_expanded/init.js
parent73f9d7bd6c8f222145c29c91eeb43ba7c7677496 (diff)
parent6223abef082bc7d2383ecbd4cf42fd280073f5d1 (diff)
Merge pull request #51 from tt-rss/js-proto-extensions-and-misc-cleanup
Remove various JS prototype extensions and alias functions
Diffstat (limited to 'plugins/shorten_expanded/init.js')
-rw-r--r--plugins/shorten_expanded/init.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/shorten_expanded/init.js b/plugins/shorten_expanded/init.js
index a89fe8e92..b541b750e 100644
--- a/plugins/shorten_expanded/init.js
+++ b/plugins/shorten_expanded/init.js
@@ -52,13 +52,12 @@ Plugins.Shorten_Expanded = {
this.observer.observe(row);
},
expand: function(id) {
- const row = App.byId(id);
+ const row = document.getElementById(id);
if (row) {
- const content = row.querySelector(".content-shrink-wrap");
- const link = row.querySelector(".expand-prompt");
+ const link = row.querySelector('.expand-prompt');
- if (content) content.removeClassName("content-shrink-wrap");
+ row.querySelector('.content-shrink-wrap')?.classList.remove('content-shrink-wrap');
if (link) Element.hide(link);
}