Skip to content

Commit fb56dbd

Browse files
BugFix; no IP or port save returns undefined, not ''
1 parent 411d074 commit fb56dbd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,12 @@ instance.prototype.connectToProPresenter = function() {
560560
// Disconnect if already connected
561561
self.disconnectFromProPresenter();
562562

563-
if (self.config.host === '' || self.config.port === '') {
563+
if (self.config.host === undefined || self.config.port === '') {
564+
return;
565+
}
566+
if (self.config.host === '127.0.0.1') {
564567
return;
565568
}
566-
567569
// Connect to remote control websocket of ProPresenter
568570
self.socket = new WebSocket('ws://'+self.config.host+':'+self.config.port+'/remote');
569571

@@ -618,7 +620,7 @@ instance.prototype.connectToProPresenterSD = function() {
618620
// Disconnect if already connected
619621
self.disconnectFromProPresenterSD();
620622

621-
if (self.config.host === '') {
623+
if (self.config.host === undefined) {
622624
return;
623625
}
624626

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"propresenter6",
55
"propresenter"
66
],
7-
"version": "2.3.0",
7+
"version": "2.3.1",
88
"api_version": "1.0.0",
99
"keywords": [
1010
"Software",

0 commit comments

Comments
 (0)