You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Console errors on interaction on the demo page #174
The toast box is something that got removed previously. As far as I can tell, this issue is fixed with new releases.
In case that it isn't I'll make sure this gets fixed.
Also, it appears to see jQuery ($ is not defined) present, which is not the case.
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.');}});
Activity
JulianPrieber commentedon Oct 3, 2022
The toast box is something that got removed previously. As far as I can tell, this issue is fixed with new releases.
In case that it isn't I'll make sure this gets fixed.
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
Ryuno-Ki commentedon Oct 3, 2022
https://github.com/JulianPrieber/littlelink-custom/blob/3c4df6721c3faec1d20a0e2c4d946f12c8925663/littlelink/js/share.button.js#L65
Could be rewritten as:
See also https://youmightnotneedjquery.com/#on
JulianPrieber commentedon Oct 4, 2022
604a0f6
JulianPrieber commentedon Oct 4, 2022
This problem only appears on Firefox. The share button opens the system default share dialog on Chrome, but Firefox does not support that.
https://caniuse.com/?search=Navigator%20share