Last active
March 25, 2023 18:52
-
-
Save djD-REK/7f6f619448b0c33becbbb65293e69cdf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const loadScript = async (url) => { | |
const response = await fetch(url) | |
const script = await response.text() | |
eval(script) | |
} | |
const scriptUrl = "script.js" | |
loadScript(scriptUrl) |
Good catch the arrow is missing for the arrow function. I'll update the
gist.
Thanks for letting me know!
…Thanks again @mtoma-ripple !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm getting an error at line
const loadScript = async (url) {
it says I have to change it to
const loadScript = async (url) => {