1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-27 08:39:00 +02:00
This commit is contained in:
Pomax
2020-08-05 10:52:05 -07:00
parent b95de85359
commit 040b545426
8 changed files with 769 additions and 374 deletions

View File

@@ -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();
}