diff options
| author | 2024-04-11 08:48:32 +0200 | |
|---|---|---|
| committer | 2024-04-11 08:48:32 +0200 | |
| commit | 30f147410d30deb0433ca53a9eec29c7b477e382 (patch) | |
| tree | 8bd2b955a8d269c2c954e89ebd3c600d150f19f3 /p | |
| parent | 350edf398c55b472e19a3017de9b4d2d3420b9e4 (diff) | |
fix selector for clipboard sharing option (#6277)
Clipboard sharing uses <button> instead of <a>, so the selector does not find it
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
