Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: mod_port is not defined #31

Open
brummer10 opened this issue Nov 24, 2022 · 0 comments
Open

Uncaught ReferenceError: mod_port is not defined #31

brummer10 opened this issue Nov 24, 2022 · 0 comments

Comments

@brummer10
Copy link

modgui.js:357:28

A trigger port throw this error when pressed in the mod-sdk, could be fixed by define mod_port in

this.setPortWidgetsValue = function (symbol, value, source, only_gui) {

diff --git a/html/js/modgui.js b/html/js/modgui.js
index 5fa88aa..eab7f0b 100644
--- a/html/js/modgui.js
+++ b/html/js/modgui.js
@@ -325,6 +325,7 @@ function GUI(effect, options) {
         var label, valueField, widget,
             port = self.controls[symbol]

+        var mod_port = source ? source.attr("mod-port") : (self.instance ? self.instance+'/'+symbol : symbol)
         port.value = value

         for (var i in port.widgets) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant