Skip to content
Snippets Groups Projects
Commit efa301e9 authored by svornost's avatar svornost
Browse files

Render JSRE onto a persistent node rather than an ephemeral one, so responses...

Render JSRE onto a persistent node rather than an ephemeral one, so responses can write to it directly
parent 24cada29
No related branches found
No related tags found
1 merge request!8556Render JSRE onto a persistent node
......@@ -4,7 +4,7 @@
App.DomPassage = class extends Passage {
/**
* @param {string} title
* @param {function():DocumentFragment|function():HTMLElement} callback
* @param {(function():DocumentFragment)|(function():HTMLElement)} callback
* @param {string[]} tags
*/
constructor(title, callback, tags = []) {
......
......@@ -52,8 +52,8 @@ new App.DomPassage("JS Random Event",
() => {
V.nextButton = "Continue";
const f = document.createDocumentFragment();
V.event.execute(f);
return f;
const d = document.createElement("div");
V.event.execute(d);
return d;
}
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment