Skip to content

A free, self-hostable news aggregator…

fix selector for clipboard sharing option (#6277)

Jacopo Galati30f147410d30
diff --git a/p/scripts/main.js b/p/scripts/main.js
index fda17b885..5c416a701 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -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;