Skip to content

Commit

Permalink
wondow.onload() -> onload(), without timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Oct 5, 2023
1 parent d20afaa commit e351d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion previewers/betatest/js/rocrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ function writeContentAndData(data, fileUrl, file, title, authors) {
s2.src = "https://unpkg.com/ro-crate-html-js/dist/ro-crate-dynamic.js";
scripts.append(s2);
var s3 = document.createElement("script");
s3.text = "setTimeout(function(){ onload(); }, 5000);";
s3.text = "onload();";
scripts.append(s3);
}

0 comments on commit e351d22

Please sign in to comment.