File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,13 @@ let DefaultLiveQueryController = {
104
104
105
105
// If we can not find Parse.liveQueryServerURL, we try to extract it from Parse.serverURL
106
106
if ( ! liveQueryServerURL ) {
107
- var tempServerURL = CoreManager . get ( 'SERVER_URL' ) ;
108
- var protocol = 'ws://' ;
107
+ const tempServerURL = CoreManager . get ( 'SERVER_URL' ) ;
108
+ let protocol = 'ws://' ;
109
109
// If Parse is being served over SSL/HTTPS, ensure LiveQuery Server uses 'wss://' prefix
110
110
if ( tempServerURL . indexOf ( 'https' ) === 0 ) {
111
111
protocol = 'wss://'
112
112
}
113
- var host = tempServerURL . replace ( / ^ h t t p s ? : \/ \/ / , '' ) ;
113
+ const host = tempServerURL . replace ( / ^ h t t p s ? : \/ \/ / , '' ) ;
114
114
liveQueryServerURL = protocol + host ;
115
115
CoreManager . set ( 'LIVEQUERY_SERVER_URL' , liveQueryServerURL ) ;
116
116
}
You can’t perform that action at this time.
0 commit comments