File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,18 +184,18 @@ window.onload = function() {
184184
185185function getConfig ( ) {
186186 let deferred = q . defer ( ) ;
187-
187+
188188 request (
189189 { method : "GET" , url : "config.json" , json : true } ,
190190 ( err , response , body ) => {
191191 if ( err || response . status < 200 || response . status >= 300 ) {
192192 throw "failed to load config.json" ;
193193 }
194-
194+
195195 deferred . resolve ( body ) ;
196196 }
197197 ) ;
198-
198+
199199 return deferred . promise ;
200200}
201201
@@ -207,14 +207,14 @@ async function loadApp() {
207207 }
208208 }
209209 else if ( / A n d r o i d / . test ( navigator . userAgent ) ) {
210- if ( confirm ( "Vector runs much better as an app on Vector . Get the app?" ) ) {
210+ if ( confirm ( "Vector runs much better as an app on Android . Get the app?" ) ) {
211211 window . location = "https://play.google.com/store/apps/details?id=im.vector.alpha" ;
212212 return ;
213213 }
214214 }
215-
215+
216216 let configJson = await getConfig ( ) ;
217-
217+
218218 console . log ( "Vector starting at " + window . location ) ;
219219 if ( validBrowser ) {
220220 var MatrixChat = sdk . getComponent ( 'structures.MatrixChat' ) ;
You can’t perform that action at this time.
0 commit comments