mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
Clean up
This commit is contained in:
@@ -111,7 +111,6 @@ class PyScript:
|
||||
|
||||
element = document.getElementById(element_id)
|
||||
html, mime_type = format_mime(value)
|
||||
console.log(mime_type, html)
|
||||
if mime_type == 'application/javascript':
|
||||
scriptEl = document.createRange().createContextualFragment(html)
|
||||
element.children = [scriptEl]
|
||||
|
||||
@@ -102,7 +102,6 @@ class PyScript:
|
||||
|
||||
element = document.getElementById(element_id)
|
||||
html, mime_type = format_mime(value)
|
||||
console.log(mime_type, html)
|
||||
if mime_type == 'application/javascript':
|
||||
scriptEl = document.createRange().createContextualFragment(html)
|
||||
element.children = [scriptEl]
|
||||
|
||||
Reference in New Issue
Block a user