many bug fixes
This commit is contained in:
Binary file not shown.
@@ -12,7 +12,7 @@
|
||||
transports: ["websocket"],
|
||||
path: '/sd-ppp/',
|
||||
query: {
|
||||
api_level: 2,
|
||||
api_level: 407,
|
||||
type: 'comfyui'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user