Replies: 4 comments
|
The toast box is something that got removed previously. As far as I can tell, this issue is fixed with new releases.
This one I'm not sure about. It should be something in here: https://github.com/JulianPrieber/littlelink-custom/blob/main/littlelink/js/share.button.js |
0 replies
|
Could be rewritten as: document.querySelector('#share-share-button').addEventListener('click', () => {
if (navigator.share) {
navigator.share({
title: '',
text: '',
url: '',
})
.then(() => console.log('Successful share'))
.catch((error) => console.log('Error sharing', error));
} else {
console.log('Share not supported on this browser, do it the old way.');
}
}); |
0 replies
0 replies
|
This problem only appears on Firefox. The share button opens the system default share dialog on Chrome, but Firefox does not support that. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
After creating a demo page, clicking the share link results in an error in the browser console:
toastBox is not defined.Also, it appears to see jQuery (
$ is not defined) present, which is not the case.All reactions