mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00: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'));
|
DEFAULT_COLLECTIONS = null;
|
||||||
ope = new OPE(qs('body'));
|
|
||||||
|
|
||||||
if (lsGet('WorkflowCollection') == null) {
|
if (lsGet('WorkflowCollection') == null) {
|
||||||
fetch('DefaultWorkflows.json')
|
fetch('DefaultWorkflows.json')
|
||||||
@ -227,8 +226,9 @@ if (lsGet('WorkflowCollection') == null) {
|
|||||||
// Examine the text in the response
|
// Examine the text in the response
|
||||||
response.json().then(function(data) {
|
response.json().then(function(data) {
|
||||||
DEFAULT_COLLECTIONS = data;
|
DEFAULT_COLLECTIONS = data;
|
||||||
|
console.log('test')
|
||||||
lsSet('WorkflowCollection', jsonEncode(DEFAULT_COLLECTIONS));
|
lsSet('WorkflowCollection', jsonEncode(DEFAULT_COLLECTIONS));
|
||||||
ws.load();
|
wc.load();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -236,3 +236,7 @@ if (lsGet('WorkflowCollection') == null) {
|
|||||||
console.log('Fetch Error :-S', 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