mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 02:04:09 +00:00
build
This commit is contained in:
@@ -3409,7 +3409,7 @@
|
||||
|
||||
if (LiteGraph.isValidConnection(output.type, input.type)) {
|
||||
link_info = new LLink(
|
||||
this.graph.last_link_id++,
|
||||
++this.graph.last_link_id,
|
||||
input.type,
|
||||
this.id,
|
||||
slot,
|
||||
@@ -11331,7 +11331,8 @@ if (typeof exports != "undefined") {
|
||||
|
||||
function DownloadData() {
|
||||
this.size = [60, 30];
|
||||
this.addInput("value", 0, { label: "" });
|
||||
this.addInput("data", 0 );
|
||||
this.addInput("download", LiteGraph.ACTION );
|
||||
this.properties = { filename: "data.json" };
|
||||
this.value = null;
|
||||
var that = this;
|
||||
@@ -11368,6 +11369,11 @@ if (typeof exports != "undefined") {
|
||||
setTimeout( function(){ URL.revokeObjectURL( url ); }, 1000*60 ); //wait one minute to revoke url
|
||||
}
|
||||
|
||||
DownloadData.prototype.onAction = function(action, param) {
|
||||
var that = this;
|
||||
setTimeout( function(){ that.downloadAsFile(); }, 100); //deferred to avoid blocking the renderer with the popup
|
||||
}
|
||||
|
||||
DownloadData.prototype.onExecute = function() {
|
||||
if (this.inputs[0]) {
|
||||
this.value = this.getInputData(0);
|
||||
|
||||
1276
build/litegraph.min.js
vendored
1276
build/litegraph.min.js
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user