mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 00:56:59 +08:00
17 lines
417 B
JavaScript
17 lines
417 B
JavaScript
import {app} from "/scripts/app.js";
|
|
|
|
app.registerExtension({
|
|
name: "Comfy.ContextMenuOptions",
|
|
init() {
|
|
const ctxMenu = LiteGraph.ContextMenu;
|
|
|
|
LiteGraph.ContextMenu = function (values, options) {
|
|
options.autoopen = true;
|
|
const ctx = ctxMenu.call(this, values, options);
|
|
|
|
return ctx;
|
|
}
|
|
|
|
LiteGraph.ContextMenu.prototype = ctxMenu.prototype;
|
|
}
|
|
}); |