Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Navigation does not work due to call to navigator.sendBeacon() #3160

Open
PascalKoe opened this issue Aug 8, 2024 · 1 comment
Open

Comments

@PascalKoe
Copy link

On which page do you see this issue?

https://daisyui.com

Describe the issue

When pressing a button/link to navigate to another page on https://daisyui.com, the URL in the browsers navigation bar changes, but the new page is not displayed. In the console of the browser, the following error is shown:

Uncaught (in promise) TypeError: navigator.sendBeacon is not a function
    Immutable 7
    async* https://daisyui.com/:89
    promise callback* https://daisyui.com/:88
2.B1NS795p.js:4:13786
    Y Immutable
    InterpretGeneratorResume self-hosted:1455
    AsyncFunctionNext self-hosted:852
    (Async: async)
    Ze Immutable
    InterpretGeneratorResume self-hosted:1455
    AsyncFunctionNext self-hosted:852
    Immutable 2
    InterpretGeneratorResume self-hosted:1455
    AsyncFunctionNext self-hosted:852
    (Async: async)
    <anonymous> https://daisyui.com/:89
    (Async: promise callback)
    <anonymous> https://daisyui.com/:88

The problem can be 'fixed' by defining the function issuing the following command in the browsers console: navigator.sendBeacon = () => {}.

The browser, the configuration, and the extensions are company managed. I do not have any real insights on what anti tracking measures they have in place.

What browsers are you seeing the problem on?

Firefox

Copy link

github-actions bot commented Aug 8, 2024

Thank you @PascalKoe for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant