Download ComfyUI/tests-ui/globalSetup.js from Metaphysix2/RPComfy: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/Metaphysix2/RPComfy/resolve/main/ComfyUI/tests-ui/globalSetup.js
- Command line
-
hf download hf://Metaphysix2/RPComfy/ComfyUI/tests-ui/globalSetup.js
-
curl -L -o globalSetup.js https://huggingface.co/Metaphysix2/RPComfy/resolve/main/ComfyUI/tests-ui/globalSetup.js
336 Bytes
| module.exports = async function () { | |
| global.ResizeObserver = class ResizeObserver { | |
| observe() {} | |
| unobserve() {} | |
| disconnect() {} | |
| }; | |
| const { nop } = require("./utils/nopProxy"); | |
| global.enableWebGLCanvas = nop; | |
| HTMLCanvasElement.prototype.getContext = nop; | |
| localStorage["Comfy.Settings.Comfy.Logging.Enabled"] = "false"; | |
| }; | |