|
|
@@ -14,7 +14,7 @@ import { FillerScene } from "./FillerScene";
|
|
|
import { LineArtLayer } from "./LineArtLayer";
|
|
|
import { WorkLayer } from "./WorkLayer";
|
|
|
|
|
|
-document.body.onload = function () {
|
|
|
+window.addEventListener("load", () => {
|
|
|
function extractIdRegex(url: string) {
|
|
|
const regex = /\/share\/([\w-]+)/;
|
|
|
const match = url.match(regex);
|
|
|
@@ -46,7 +46,7 @@ document.body.onload = function () {
|
|
|
// init(`http://localhost:6889/proxy/zips/v2/number_mini/1501/6735bd3ab494234e4abc1db1.zip`);
|
|
|
// init(`http://localhost:6889/proxy/zips/v2/number_mini/1501/${id}.zip`);
|
|
|
init(id, uuid, zipUrl);
|
|
|
-};
|
|
|
+});
|
|
|
|
|
|
async function test() {
|
|
|
let canvas = document.querySelector("#canvas") as HTMLCanvasElement;
|