Skip to content

Commit

Permalink
ro-crate previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Sep 29, 2023
1 parent 4a36ecf commit d7f4ac0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions previewers/betatest/js/rocrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ function writeContentAndData(data, fileUrl, file, title, authors) {
s2.type = "text/javascript";
s2.src = "js/ro-crate-dynamic.js";
scripts.append(s2);
dispatchLoad();
}

async function dispatchLoad() {
dispatchEvent(new Event('load'));
var s3 = document.createElement("script");
s3.type = "text/javascript";
s3.text = `dispatchEvent(new Event('load'));`;
scripts.append(s3);
}

0 comments on commit d7f4ac0

Please sign in to comment.