mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-27 08:39:00 +02:00
PRE
This commit is contained in:
@@ -160,10 +160,7 @@ class GraphicsElement extends CustomElement {
|
||||
|
||||
const script = (this.script = document.createElement(`script`));
|
||||
script.type = "module";
|
||||
script.src = URL.createObjectURL(
|
||||
new Blob([this.code], { type: `text/javascript` })
|
||||
);
|
||||
|
||||
script.src = `data:application/javascript;charset=utf-8,${encodeURIComponent(this.code)}`;
|
||||
if (rerender) this.render();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user