This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 }
4646 $ . getJSON ( 'https://telegram.org/webogram_migrate' ) . success ( function ( result ) {
4747 kzVersion = result . kz_version
48- if ( 'K' === kzVersion || 'Z' === kzVersion ) {
49- ConfigStorage . set ( {
50- kz_version : kzVersion
51- } )
52- location . href = 'https://web.telegram.org/' + kzVersion . toLowerCase ( ) + '/' + location . hash
53- return
54- } else {
55- bootReady . migration_check = true
48+ if ( 'K' !== kzVersion && 'Z' !== kzVersion ) {
49+ kzVersion = Math . random ( ) >= 0.5 ? 'K' : 'Z'
5650 }
51+ ConfigStorage . set ( {
52+ kz_version : kzVersion
53+ } )
54+ location . href = 'https://web.telegram.org/' + kzVersion . toLowerCase ( ) + '/' + location . hash
5755 } )
56+ return
5857 }
5958 var checkReady = function checkReady ( ) {
6059 var i
Original file line number Diff line number Diff line change 1717 ! window . addEventListener ) {
1818 return
1919 }
20+ if ( 'web.telegram.org' !== location . hostname ||
21+ Config . Modes . test ||
22+ Config . Modes . ios_standalone ||
23+ location . search . indexOf ( 'legacy=1' ) != - 1 ) {
24+ // procceed
25+ } else {
26+ return
27+ }
2028
2129 var declined = false
2230 function updateFound ( ) {
You can’t perform that action at this time.
0 commit comments