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 4f9819e commit 2a99375Copy full SHA for 2a99375
src/shader-doodle.js
@@ -17,6 +17,9 @@ class ShaderDoodleElement extends SDNodeElement {
17
}
18
19
connectedCallback() {
20
+ this.shadow.innerHTML = Template.render(this.width, this.height);
21
+ this.canvas = Template.map(this.shadow).canvas;
22
+
23
setTimeout(() => {
24
try {
25
this.init();
@@ -69,9 +72,6 @@ class ShaderDoodleElement extends SDNodeElement {
69
72
70
73
71
74
async init() {
- this.shadow.innerHTML = Template.render(this.width, this.height);
- this.canvas = Template.map(this.shadow).canvas;
-
75
await super.init();
76
77
this.surface = Surface(this);
0 commit comments