Skip to content

Commit

Permalink
wondow.onload() in separate script tag with delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Oct 5, 2023
1 parent eeb9075 commit d20afaa
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 = "window.onload();";
s3.text = "setTimeout(function(){ onload(); }, 5000);";
scripts.append(s3);
}

0 comments on commit d20afaa

Please sign in to comment.