From 59529f50e61d6deae75e963513ca20e35c8d99ea Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Sat, 10 Jan 2026 15:12:58 -0800 Subject: [PATCH] Fix no-js warning, crash on duplicate install --- videohelpersuite/nodes.py | 2 +- web/js/VHS.core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/videohelpersuite/nodes.py b/videohelpersuite/nodes.py index 1ed64d6..5f61b5f 100755 --- a/videohelpersuite/nodes.py +++ b/videohelpersuite/nodes.py @@ -104,7 +104,7 @@ def apply_format_widgets(format_name, kwargs): #NOTE: This doesn't respect max/min, but should be good enough as a fallback to a fallback to a fallback default = {"BOOLEAN": False, "INT": 0, "FLOAT": 0, "STRING": ""}[w[1]] kwargs[w[0]] = default - logger.warn(f"Missing input for {w[0][0]} has been set to {default}") + logger.warn(f"Missing input for {w[0]} has been set to {default}") wit = iterate_format(video_format, False) for w in wit: while isinstance(w, list): diff --git a/web/js/VHS.core.js b/web/js/VHS.core.js index af159ce..00f3941 100755 --- a/web/js/VHS.core.js +++ b/web/js/VHS.core.js @@ -167,8 +167,8 @@ function useKVState(nodeType) { }); }) } -var helpDOM; -if (!app.helpDOM) { +var helpDOM = app.VHSHelp; +if (!app.VHSHelp) { helpDOM = document.createElement("div"); app.VHSHelp = helpDOM }