We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc4235 commit a16c2e9Copy full SHA for a16c2e9
builtin-programs/web/web.folk
@@ -144,7 +144,11 @@ fn HtmlWhen args {
144
const el = document.currentScript.previousElementSibling;
145
const callbacks = {$callbacksJs};
146
folk.subscribe(`the html for {$pattern} is /html/`, ({html}) => {
147
- Idiomorph.morph(el, html, {morphStyle:'innerHTML', callbacks:callbacks});
+ if (window.Idiomorph) {
148
+ Idiomorph.morph(el, html, {morphStyle:'innerHTML', callbacks:callbacks});
149
+ } else {
150
+ el.innerHTML = html;
151
+ }
152
});
153
})();
154
</script>
0 commit comments