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:
Jacopo Galati 2024-04-11 08:48:32 +02:00 committed by GitHub
parent 350edf398c
commit 30f147410d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;