mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +00:00
handle corner case where demo doesn't use the normal canvas (modals)
fixes https://github.com/bigskysoftware/htmx/issues/780
This commit is contained in:
parent
cc6dba15b0
commit
9f2aeec184
@ -67,8 +67,11 @@ function params(request) {
|
|||||||
function init(path, response) {
|
function init(path, response) {
|
||||||
onGet(path, response);
|
onGet(path, response);
|
||||||
let content = response(null, {});
|
let content = response(null, {});
|
||||||
document.getElementById("demo-canvas").innerHTML = content;
|
let canvas = document.getElementById("demo-canvas");
|
||||||
pushActivityChip("Initial State", "init", demoInitialStateTemplate(content));
|
if (canvas) {
|
||||||
|
canvas.innerHTML = content;
|
||||||
|
pushActivityChip("Initial State", "init", demoInitialStateTemplate(content));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onGet(path, response) {
|
function onGet(path, response) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user