We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b96c16 commit 50c4c87Copy full SHA for 50c4c87
src/scripts/app.ts
@@ -657,7 +657,7 @@ export class ComfyApp {
657
}
658
659
660
- node.prototype.onDrawBackground = function (ctx) {
+ function unsafeDrawBackground(ctx) {
661
if (!this.flags.collapsed) {
662
let imgURLs = []
663
let imagesChanged = false
@@ -992,6 +992,14 @@ export class ComfyApp {
992
993
994
995
+
996
+ node.prototype.onDrawBackground = function (ctx) {
997
+ try {
998
+ unsafeDrawBackground.call(this, ctx)
999
+ } catch (error) {
1000
+ console.error('Error drawing node background', error)
1001
+ }
1002
1003
1004
1005
/**
0 commit comments