mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 14:50:20 +08:00
Update WorkflowCollection.js
This commit is contained in:
parent
95fcd09ef2
commit
b9aa1a5125
@ -212,8 +212,7 @@ class OPE{
|
||||
}
|
||||
}
|
||||
|
||||
wc = new WC(qs('body'));
|
||||
ope = new OPE(qs('body'));
|
||||
DEFAULT_COLLECTIONS = null;
|
||||
|
||||
if (lsGet('WorkflowCollection') == null) {
|
||||
fetch('DefaultWorkflows.json')
|
||||
@ -227,12 +226,17 @@ if (lsGet('WorkflowCollection') == null) {
|
||||
// Examine the text in the response
|
||||
response.json().then(function(data) {
|
||||
DEFAULT_COLLECTIONS = data;
|
||||
lsSet('WorkflowCollection', jsonEncode(DEFAULT_COLLECTIONS));
|
||||
ws.load();
|
||||
console.log('test')
|
||||
lsSet('WorkflowCollection', jsonEncode(DEFAULT_COLLECTIONS));
|
||||
wc.load();
|
||||
});
|
||||
}
|
||||
)
|
||||
.catch(function(err) {
|
||||
console.log('Fetch Error :-S', err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
wc = new WC(qs('body'));
|
||||
ope = new OPE(qs('body'));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user