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

error: define variable is undefined #7

Open
r03ert0 opened this issue Jan 2, 2021 · 0 comments
Open

error: define variable is undefined #7

r03ert0 opened this issue Jan 2, 2021 · 0 comments

Comments

@r03ert0
Copy link

r03ert0 commented Jan 2, 2021

Hello,
Trying to use petitoJPEG, I got this error in Safari:

ReferenceError: Can't find variable: define

As a hacky solution, I added this definition before the script tag loading petitoJPEG:

<script>
var define = {amd: undefined}
</script>
<script src="pttjpeg.js"></script>

and now everything works : )

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