Spaces:
Running
Running
Commit
·
9ca38ff
1
Parent(s):
f7c6c35
fix: use window.onload
Browse files- dist/index.js +0 -0
- src/index.js +1 -1
dist/index.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
src/index.js
CHANGED
|
@@ -188,7 +188,7 @@ document.getElementById("user-input").addEventListener("keydown", (event) => {
|
|
| 188 |
}
|
| 189 |
});
|
| 190 |
|
| 191 |
-
|
| 192 |
document.getElementById("download").textContent = "Download";
|
| 193 |
document.getElementById("download").disabled = false;
|
| 194 |
}
|
|
|
|
| 188 |
}
|
| 189 |
});
|
| 190 |
|
| 191 |
+
window.onload = function () {
|
| 192 |
document.getElementById("download").textContent = "Download";
|
| 193 |
document.getElementById("download").disabled = false;
|
| 194 |
}
|