One last attempt

This commit is contained in:
Trung0246
2023-11-27 23:35:49 -08:00
committed by GitHub
parent 8806dcda85
commit 6d525e7f32
+12 -2
View File
@@ -5,7 +5,7 @@ import { ComfyWidgets } from "../../../scripts/widgets.js";
(async () => {
window.setTimeout(() => {
app.graph.extra["0246_VERSION"] = "0.0.1"; // Only used when breaking changes happen
app.graph.extra["0246_VERSION"] = [0, 0, 1]; // Only used when breaking changes happen
}, 1500);
async function try_import(name) {
@@ -16,6 +16,16 @@ import { ComfyWidgets } from "../../../scripts/widgets.js";
}
}
function compare_version(a, b) {
for (let i = 0; i < a.length; ++ i) {
if (a[i] > b[i])
return 1;
if (a[i] < b[i])
return -1;
}
return 0;
}
function rgthree_exec(name, ...args) {
return rgthree_utils?.[name]?.(...args);
}
@@ -940,4 +950,4 @@ import { ComfyWidgets } from "../../../scripts/widgets.js";
});
// var curr_node = LiteGraph.createNode(LiteGraph.getNodeTypesInCategory(LiteGraph.getNodeTypesCategories()[2])[2].type);
})();
})();