Update extension.js

This commit is contained in:
BlakeOne
2024-04-18 12:15:01 -07:00
committed by GitHub
parent 3f48df0fe9
commit af6c1759d8
+1 -1
View File
@@ -8,7 +8,7 @@ app.registerExtension({
LGraphCanvas.prototype.getNodeMenuOptions = function(node) {
const options = orig.call(this, node);
options.push(null, {
content: "Restore default values",
content: "Reset",
callback: () => {
if (!defaultWidgets[node.type]) {
defaultWidgets[node.type] = LiteGraph.createNode(node.type, node.name, node.options).widgets;