modified: remove comfyui-manager from list if desktop mode

This commit is contained in:
Dr.Lt.Data
2025-02-13 08:46:18 +09:00
parent 5b2e2fcf9d
commit 9963afa558
4 changed files with 11 additions and 4 deletions

View File

@@ -1672,6 +1672,8 @@ export class CustomNodesManager {
}
async loadData(show_mode = ShowMode.NORMAL) {
const isElectron = 'electronAPI' in window;
this.show_mode = show_mode;
console.log("Show mode:", show_mode);
@@ -1691,6 +1693,11 @@ export class CustomNodesManager {
}
const { channel, node_packs } = res.data;
if(isElectron) {
delete node_packs['comfyui-manager'];
}
this.channel = channel;
this.mode = mode;
this.custom_nodes = node_packs;