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 |
Beta Was this translation helpful? Give feedback.
-
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.');
}
}); |
Beta Was this translation helpful? Give feedback.
-
This problem only appears on Firefox. The share button opens the system default share dialog on Chrome, but Firefox does not support that. |
Beta Was this translation helpful? Give feedback.
-
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.Beta Was this translation helpful? Give feedback.
All reactions