mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-26 13:08:38 -04:00
fix selector for clipboard sharing option (#6277)
Clipboard sharing uses <button> instead of <a>, so the selector does not find it
This commit is contained in:
1 parent
350edf398c
commit
30f147410d
1 file changed
+1
-1
+1
-1
@@ -697,7 +697,7 @@ function auto_share(key) {
|
||||
if (!share) {
|
||||
return;
|
||||
}
|
||||
const shares = share.parentElement.querySelectorAll('.dropdown-menu .item a');
|
||||
const shares = share.parentElement.querySelectorAll('.dropdown-menu .item [data-type]');
|
||||
if (typeof key === 'undefined') {
|
||||
// Display the share div
|
||||
location.hash = share.id;
|
||||
|
||||
Reference in new issue
Block a user