cleanup code

This commit is contained in:
Weixuan Fu
2024-01-12 19:34:08 +08:00
parent 6d537f0ded
commit fe37025d8e
6 changed files with 3 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -10,6 +10,7 @@ const callback = function (mutationsList, observer) {
// @ts-ignore
mutation.addedNodes.forEach((node) => {
if (node.nodeName === "CANVAS") {
// @ts-ignore
import("/workspace_web/input.js");
observer.disconnect();
}
-1
View File
@@ -1,7 +1,6 @@
import { Table } from "./db-tables/WorkspaceDB";
export async function getDB(table: Table): Promise<string | undefined> {
console.warn("getDB ntable", table);
try {
const response = await fetch(`/workspace/get_db?table=${table}`);
if (!response.ok) {
+1 -1
View File
@@ -30,7 +30,7 @@ export default defineConfig({
dir: "../dist",
// assetFileNames: "[name]-[hash][extname]",
entryFileNames: "workspace_web/[name].js",
chunkFileNames: `workspace_web/[name].js`,
chunkFileNames: `workspace_web/[name]-[hash].js`,
assetFileNames: `assets/[name]-[hash].[ext]`,
},
},