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

Unhandled Promise rejection in firefox #441

Open
1 task
theSumit67 opened this issue Dec 5, 2022 · 1 comment
Open
1 task

Unhandled Promise rejection in firefox #441

theSumit67 opened this issue Dec 5, 2022 · 1 comment

Comments

@theSumit67
Copy link

Use case: description, code

I am using Angular framework. dom-to-image library is loaded as script tag from assets.
Sample

const content = document.getElementsByClassName("app-wrapper")[0];
domtoimage.toBlob(content).then((imgData) => {
    formData.append("file", imgData, "screenshot.png");
    // formData used in a API .......
});

On chrome its working fine, however on firefox its generating following error -

image

Stack trace -

image

image

Browsers

  • Chrome 49+
  • [* ] Firefox 45+
@qq15725
Copy link

qq15725 commented Feb 3, 2023

You can try https://github.com/qq15725/modern-screenshot

seems to be an svg+xml problem with no encode uri

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

2 participants