diff --git a/config.js b/config.js index c685de8..c23e3da 100644 --- a/config.js +++ b/config.js @@ -16,6 +16,7 @@ module.exports = new Store({ midirelayPort: '4000', midirelayMIDIPort: 'loopMIDI Port', companionIP: '127.0.0.1', + companionPort: '51234', plugin_midirelay: true, plugin_vista: true, plugin_http: true, diff --git a/index.html b/index.html index 0a6946e..4e96ac9 100644 --- a/index.html +++ b/index.html @@ -222,6 +222,7 @@ $('#switchCompanion').prop('checked', config.get('plugin_companion')); plugin_enable('companion') $('#txtCompanionIP').val(config.get('companionIP')); + $('#txtCompanionPort').val(config.get('companionPort')); $('#switchMdns').prop('checked', config.get('switch_mdns')); $('#switchSettings').prop('checked', config.get('switch_settings')); @@ -374,6 +375,7 @@ config.set('vistaMIDIPort', $('#txtVistaMIDIPort').val()); config.set('companionIP', $('#txtCompanionIP').val()); + config.set('companionPort', $('#txtCompanionPort').val()); } function mdnsRescan() { @@ -594,7 +596,11 @@