@rerun-io/web-viewer 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export class WebViewer {
|
|
|
33
33
|
async start(url, parent = document.body) {
|
|
34
34
|
const canvas = document.createElement("canvas");
|
|
35
35
|
canvas.id = randomId();
|
|
36
|
+
parent.append(canvas);
|
|
36
37
|
|
|
37
38
|
let WebHandle_class = await load();
|
|
38
39
|
const handle = new WebHandle_class();
|
|
@@ -41,7 +42,6 @@ export class WebViewer {
|
|
|
41
42
|
throw new Error(`Web viewer crashed: ${handle.panic_message()}`);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
parent.append(canvas);
|
|
45
45
|
this.#canvas = canvas;
|
|
46
46
|
this.#handle = handle;
|
|
47
47
|
|