From 4a36ecf2d76081a7ae46ee890972c86a84643b04 Mon Sep 17 00:00:00 2001 From: Eryk Kulikowski Date: Fri, 29 Sep 2023 18:20:58 +0200 Subject: [PATCH] ro-crate previewer --- previewers/betatest/js/rocrate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/previewers/betatest/js/rocrate.js b/previewers/betatest/js/rocrate.js index d07a837..79832e1 100644 --- a/previewers/betatest/js/rocrate.js +++ b/previewers/betatest/js/rocrate.js @@ -18,5 +18,9 @@ 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')); }