mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 11:29:53 +00:00
31 lines
513 B
TypeScript
31 lines
513 B
TypeScript
// @ts-strict-ignore
|
|
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 = ''
|
|
}
|
|
}
|