Skip to content

Commit

Permalink
refactor: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Aug 1, 2023
1 parent d0e68a2 commit a43bac1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions extensions/reroutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import { app } from "/scripts/app.js";

const reroutesName = "Failfast.reroutes";
const mini =[34,26]
const mini = [34, 26];
function miniReroute(node) {
if (node.type !== "Reroute") {
return;
Expand All @@ -36,9 +36,7 @@ function miniReroute(node) {
get() {
return this._size;
},
set() {
console.log("prevented");
},
set() {},
});
node._size[0] = mini[0];
node._size[1] = mini[1];
Expand Down Expand Up @@ -73,8 +71,8 @@ app.registerExtension({
content: node.properties.showTitle ? "Hide Title" : "Show Title",
callback() {
node.outputs[0].label = node.properties.showTitle
? undefined
: node.title;
? undefined
: node.title;
node.properties.showTitle = !node.properties.showTitle;
},
});
Expand All @@ -97,9 +95,7 @@ app.registerExtension({
get() {
return this._size;
},
set() {
console.log("prevented");
},
set() {},
});
}
node._size[0] = node.properties.dot ? 75 : mini[0];
Expand Down

0 comments on commit a43bac1

Please sign in to comment.