Changed to arrow function

This commit is contained in:
Kristofers Solo 2023-01-19 19:28:33 +02:00
parent e2bbdd7bc3
commit 398f99ba4c

View File

@ -1,6 +1,6 @@
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
async function typewriter() {
window.addEventListener("load", async () => {
const TEXT_DISPLAY = document.getElementById("rotating-text")
const PHRASES = ["Software Developer", "Jedi", "Student"]
let current_phrase = []
@ -34,5 +34,4 @@ async function typewriter() {
}
}
}
}
window.addEventListener("load", typewriter)
})