mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
16 lines
372 B
TypeScript
16 lines
372 B
TypeScript
module.exports = async function () {
|
|
global.ResizeObserver = class ResizeObserver {
|
|
observe() {}
|
|
unobserve() {}
|
|
disconnect() {}
|
|
}
|
|
|
|
require('reflect-metadata')
|
|
const { nop } = require('./utils/nopProxy')
|
|
global.enableWebGLCanvas = nop
|
|
|
|
HTMLCanvasElement.prototype.getContext = nop
|
|
|
|
localStorage['Comfy.Settings.Comfy.Logging.Enabled'] = 'false'
|
|
}
|