neetnestor commited on
Commit
9ca38ff
·
1 Parent(s): f7c6c35

fix: use window.onload

Browse files
Files changed (2) hide show
  1. dist/index.js +0 -0
  2. 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
- document.onload = function () {
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
  }