1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00
This commit is contained in:
Philipp Rudiger
2022-04-20 15:06:39 +02:00
parent 97aa4513f7
commit ca92e58c37
2 changed files with 0 additions and 2 deletions

View File

@@ -111,7 +111,6 @@ class PyScript:
element = document.getElementById(element_id) element = document.getElementById(element_id)
html, mime_type = format_mime(value) html, mime_type = format_mime(value)
console.log(mime_type, html)
if mime_type == 'application/javascript': if mime_type == 'application/javascript':
scriptEl = document.createRange().createContextualFragment(html) scriptEl = document.createRange().createContextualFragment(html)
element.children = [scriptEl] element.children = [scriptEl]

View File

@@ -102,7 +102,6 @@ class PyScript:
element = document.getElementById(element_id) element = document.getElementById(element_id)
html, mime_type = format_mime(value) html, mime_type = format_mime(value)
console.log(mime_type, html)
if mime_type == 'application/javascript': if mime_type == 'application/javascript':
scriptEl = document.createRange().createContextualFragment(html) scriptEl = document.createRange().createContextualFragment(html)
element.children = [scriptEl] element.children = [scriptEl]