mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 14:27:40 +00:00
30 lines
500 B
TypeScript
30 lines
500 B
TypeScript
import fs from "fs";
|
|
import path from "path";
|
|
import { nop } from "../utils/nopProxy";
|
|
|
|
function forEachKey(cb) {
|
|
for (const k of [
|
|
"LiteGraph",
|
|
"LGraph",
|
|
"LLink",
|
|
"LGraphNode",
|
|
"LGraphGroup",
|
|
"DragAndScale",
|
|
"LGraphCanvas",
|
|
"ContextMenu",
|
|
]) {
|
|
cb(k);
|
|
}
|
|
}
|
|
|
|
export default {
|
|
setup(ctx) {},
|
|
|
|
teardown(ctx) {
|
|
// forEachKey((k) => delete ctx[k]);
|
|
|
|
// Clear document after each run
|
|
document.getElementsByTagName("html")[0].innerHTML = "";
|
|
},
|
|
};
|