Console errors on interaction on the demo page #174
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinghacktoberfesthelp wantedExtra attention is neededExtra attention is neededjavascriptPull requests that update Javascript codePull requests that update Javascript code
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghacktoberfesthelp wantedExtra attention is neededExtra attention is neededjavascriptPull requests that update Javascript codePull requests that update Javascript code
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