You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quickstart code from the readme gives errors when ran in a browser.
The code:
<script src="https://cdn.jsdelivr.net/gh/cemalgnlts/Mailjs@latest/mailjs.min.js"></script>
<!-- you can exlude this if not listening to events (may cause runtime error) -->
<script src="https://cdn.jsdelivr.net/gh/cemalgnlts/Mailjs@latest/eventsource.min.js"></script>
<script>
const mailjs = new Mailjs();
</script>
The errors: Uncaught ReferenceError: EventSourcePolyfill is not defined on line 1 of mailjs.min.js and Uncaught TypeError: Mailjs is not a constructor on line 6 of the example code.
The example in the examples folder works fine. This is because that example uses version 2.0. Changing "latest" in the quickstart code to 2.0 makes it work. But then I'm unfortunately missing out from the new features in 2.2.
The text was updated successfully, but these errors were encountered:
The quickstart code from the readme gives errors when ran in a browser.
The code:
The errors:
Uncaught ReferenceError: EventSourcePolyfill is not defined
on line 1 of mailjs.min.js andUncaught TypeError: Mailjs is not a constructor
on line 6 of the example code.The example in the examples folder works fine. This is because that example uses version 2.0. Changing "latest" in the quickstart code to 2.0 makes it work. But then I'm unfortunately missing out from the new features in 2.2.
The text was updated successfully, but these errors were encountered: