-
Notifications
You must be signed in to change notification settings - Fork 70
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Uncaught Error: Already created an embed #62
Labels
enhancement
New feature or request
Comments
So far I've made no effort to support React/Next.js. I'd be surprised if it works out of the box. You need to be careful to not execute Kleck's initialization logic twice. Also Klecks has no destructor yet. At some point I will look into this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to embed Kleki into the next Js project but getting this error
Uncaught Error: Already created an embed
code:
`
if (typeof window !== "undefined" && typeof window.Klecks !== "undefined") {
const klecks = new Klecks({
onSubmit: (onSuccess, onError) => {
console.log(klecks.getPNG())
klecks.getPSD().then((blob) => {
console.log(blob)
});
`
The text was updated successfully, but these errors were encountered: