many bug fixes

This commit is contained in:
zombieyang
2024-07-29 18:06:46 +08:00
parent 85a44c8dc7
commit 728fb8fad3
10 changed files with 79 additions and 60 deletions
Binary file not shown.
+1 -1
View File
@@ -12,7 +12,7 @@
transports: ["websocket"],
path: '/sd-ppp/',
query: {
api_level: 2,
api_level: 407,
type: 'comfyui'
}
});
+2 -4
View File
@@ -136,7 +136,7 @@
transports: ["websocket"],
path: '/sd-ppp/',
query: {
api_level: 2,
api_level: 407,
type: 'sd'
}
});
@@ -151,14 +151,12 @@
const tab = document.getElementById('tabs').querySelector('button.selected');
const activeTabIndex = Array.prototype.indexOf.call(tab.parentElement.children, tab)
const actions = []
for (let getWidgetRef of insertedGetWidgets) {
const widget = getWidgetRef.deref();
if (widget && widget.isReady()) {
actions.push(widget.action());
await widget.action()
}
}
if (actions.length) await Promise.all(actions)
let skipButton = null;
if (activeTabIndex == 0) {
+2 -4
View File
@@ -11,8 +11,7 @@
return -1;
}
const split = name.split('(id:')
id = parseInt(split.pop().trim().slice(0, -1))
return id;
return parseInt(split.pop().trim().slice(0, -1));
}
static getLayerID(name) {
if (name == this.SPECIAL_LAYER_USE_CANVAS)
@@ -24,8 +23,7 @@
if (name == this.SPECIAL_LAYER_SAME_AS_LAYER)
return -3;
const split = name.split('(id:')
id = parseInt(split.pop().trim().slice(0, -1))
return id;
return parseInt(split.pop().trim().slice(0, -1));
}