@@ -6,7 +6,6 @@ function UrlParams (game) {
66 const finalName = nameList [ Math . floor ( Math . random ( ) * nameList . length ) ]
77 game . nick = new URL ( document . location ) . searchParams . get ( 'nick' )
88 game . server = new URL ( document . location ) . searchParams . get ( 'server' )
9- game . serverPort = new URL ( document . location ) . searchParams . get ( 'port' )
109 game . premium = new URL ( document . location ) . searchParams . get ( 'premium' )
1110 game . proxy = new URL ( document . location ) . searchParams . get ( 'proxy' )
1211 let reload = false
@@ -16,15 +15,7 @@ function UrlParams (game) {
1615 }
1716 if ( game . server === '' || game . server === null ) {
1817 reload = true
19- game . server = game . production
20- ? game . servers . production [ 0 ]
21- : game . servers . development [ 0 ]
22- }
23- if ( game . serverPort === '' || game . serverPort === null ) {
24- reload = true
25- game . serverPort = game . production
26- ? game . servers . production [ 1 ]
27- : game . servers . development [ 1 ]
18+ game . server = game . production ? game . servers . production : game . servers . development
2819 }
2920 if ( game . premium === '' || game . premium === null ) {
3021 reload = true
@@ -43,7 +34,7 @@ function UrlParams (game) {
4334 }
4435 }
4536 if ( reload ) {
46- document . location . href = `?server=${ game . server } &port= ${ game . serverPort } & nick=${ game . nick } &premium=${ game . premium } &proxy=${ game . proxy } `
37+ document . location . href = `?server=${ game . server } &nick=${ game . nick } &premium=${ game . premium } &proxy=${ game . proxy } `
4738 } else {
4839 if ( game . premium === 'true' ) {
4940 swal ( {
0 commit comments