aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-05-12 17:10:20 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-12 17:10:20 +0200
commit0940025980f66ed5bcf55443d573e5dc89f7bcaa (patch)
tree7a65ad49c369acad88c901c459928e70fff26d8d /p/scripts
parent3b953d759b18acaadf74f8a33aa7efa8a7169de9 (diff)
Fix: click on feed title (#6452)
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 2ed9bc710..2bc0f5337 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1081,7 +1081,7 @@ function init_stream(stream) {
return true;
}
- el = ev.target.closest('.item .title > a');
+ el = ev.target.closest('.item a.title');
if (el) { // Allow default control/command-click behaviour such as open in background-tab
return ev.ctrlKey || ev.metaKey;
}
@@ -1189,7 +1189,7 @@ function init_stream(stream) {
return;
}
- let el = ev.target.closest('.item .title > a');
+ let el = ev.target.closest('.item a.title');
if (el) {
if (ev.which == 1) {
if (ev.ctrlKey) { // Control+click