Reproduction URL (Required)
https://daisyui.com
What version of daisyUI are you using?
No response
Which browsers are you seeing the problem on?
Firefox
Describe your issue
Go to about:config, set beacon.enable to false and visit daisyui.com. The navigation will update the url but won't change the content. Clicking a link in the navigation and then reloading the page will actually navigate, but that's no way to live.
The devtools console says Uncaught (in promise) TypeError: navigator.sendBeacon is not a function, which should probably be caught and, from a data protection standpoint, be ignored.
My understanding is that this is used for analytics, in particular when trying to send something before the browser unloads the page. Since daisyui doesn't actually unload (at least in this case) we could fall back to fetch.
Reproduction URL (Required)
https://daisyui.com
What version of daisyUI are you using?
No response
Which browsers are you seeing the problem on?
Firefox
Describe your issue
Go to about:config, set
beacon.enableto false and visit daisyui.com. The navigation will update the url but won't change the content. Clicking a link in the navigation and then reloading the page will actually navigate, but that's no way to live.The devtools console says
Uncaught (in promise) TypeError: navigator.sendBeacon is not a function, which should probably be caught and, from a data protection standpoint, be ignored.My understanding is that this is used for analytics, in particular when trying to send something before the browser unloads the page. Since daisyui doesn't actually unload (at least in this case) we could fall back to fetch.