Skip to content

Commit eb8bd5a

Browse files
Datafile: trigger render on runestone:login-complete instead of DomContentLoaded
1 parent c73b88d commit eb8bd5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • bases/rsptx/interactives/runestone/datafile/js

bases/rsptx/interactives/runestone/datafile/js/datafile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ class DataFile extends RunestoneBase {
7979
== Find the custom HTML tags and ==
8080
== execute our code on them ==
8181
=================================*/
82-
document.addEventListener("DOMContentLoaded", function () {
82+
83+
document.addEventListener("runestone:login-complete", function () {
8384
document.querySelectorAll("[data-component=datafile]").forEach(function (el) {
8485
try {
8586
dfList[el.id] = new DataFile({ orig: el });

0 commit comments

Comments
 (0)