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

Uncaught ReferenceError: Swal is not defined at HTMLSpanElement.copy.onclick #136

Closed
liulyxandy-codemao opened this issue Mar 17, 2022 · 0 comments

Comments

@liulyxandy-codemao
Copy link

liulyxandy-codemao commented Mar 17, 2022

copy.onclick = function () {
var code = Blockly.JavaScript.workspaceToCode(workspace);
navigator.clipboard.writeText(code);
//here's the error
Swal.fire({
position: 'top-end',
type: 'success',
title: 'Copied',
showConfirmButton: false,
timer: 1500
})
}

image

Hello,

I don't know why I am getting error here, can you help me?

Thanks.

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