From bb20087aa9e20e76c5c701c8e31117ca87ef61c5 Mon Sep 17 00:00:00 2001 From: Eryk Kulikowski Date: Fri, 29 Sep 2023 18:32:57 +0200 Subject: [PATCH] ro-crate previewer --- previewers/betatest/js/rocrate.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/previewers/betatest/js/rocrate.js b/previewers/betatest/js/rocrate.js index d4bbd47..3f0d579 100644 --- a/previewers/betatest/js/rocrate.js +++ b/previewers/betatest/js/rocrate.js @@ -17,9 +17,6 @@ function writeContentAndData(data, fileUrl, file, title, authors) { var s2 = document.createElement("script"); s2.type = "text/javascript"; s2.src = "js/ro-crate-dynamic.js"; + s2.text = `load();`; scripts.append(s2); - var s3 = document.createElement("script"); - s3.type = "text/javascript"; - s3.text = `dispatchEvent(new Event('load'));`; - scripts.append(s3); }