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 = {
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 ( / ^ h t t p s ? : \/ \/ / , '' ) ;
113+ const host = tempServerURL . replace ( / ^ h t t p s ? : \/ \/ / , '' ) ;
114114 liveQueryServerURL = protocol + host ;
115115 CoreManager . set ( 'LIVEQUERY_SERVER_URL' , liveQueryServerURL ) ;
116116 }
You can’t perform that action at this time.
0 commit comments