mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 13:02:35 +08:00
25 lines
557 B
JavaScript
Vendored
25 lines
557 B
JavaScript
Vendored
import { app } from "../../scripts/app.js";
|
|
|
|
app.registerExtension({
|
|
name: "comfyui.exit",
|
|
commands: [
|
|
{
|
|
id: "Comfy.Exit",
|
|
label: "Exit",
|
|
menubarLabel: "Exit",
|
|
icon: "pi pi-power-off",
|
|
function: async () => {
|
|
if (confirm("Shut down ComfyUI?")) {
|
|
window.location.href = "/stopped";
|
|
}
|
|
}
|
|
}
|
|
],
|
|
menuCommands: [
|
|
{
|
|
path: ["File"],
|
|
commands: ["Comfy.Exit"]
|
|
}
|
|
]
|
|
});
|