Skip to content

Commit bec4739

Browse files
committed
Update ParseLiveQuery.js
1 parent 9ead2ec commit bec4739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ParseLiveQuery.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ let DefaultLiveQueryController = {
104104

105105
// If we can not find Parse.liveQueryServerURL, we try to extract it from Parse.serverURL
106106
if (!liveQueryServerURL) {
107-
var tempServerURL = CoreManager.get('SERVER_URL');
108-
var protocol = 'ws://';
107+
const tempServerURL = CoreManager.get('SERVER_URL');
108+
let protocol = 'ws://';
109109
// If Parse is being served over SSL/HTTPS, ensure LiveQuery Server uses 'wss://' prefix
110110
if (tempServerURL.indexOf('https') === 0) {
111111
protocol = 'wss://'
112112
}
113-
var host = tempServerURL.replace(/^https?:\/\//, '');
113+
const host = tempServerURL.replace(/^https?:\/\//, '');
114114
liveQueryServerURL = protocol + host;
115115
CoreManager.set('LIVEQUERY_SERVER_URL', liveQueryServerURL);
116116
}

0 commit comments

Comments
 (0)