Change window.onload to eventListener

This commit is contained in:
Case 2019-03-12 00:45:19 -05:00
parent 815afd604e
commit 522e6b9266
1 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,6 @@ function positionMoon() {
moon.style.left = Math.random()*100 + "%";
}
window.onload = function() {
document.addEventListener("DOMContentLoaded", function() {
positionMoon();
};
});