File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,15 @@ class DownloadsController {
24
24
this . linuxFileName = file ;
25
25
}
26
26
}
27
+
28
+ this . setVersion ( data [ 0 ] . version ) ;
29
+ this . tabs . forEach ( el => this . setInstallTabData ( el . id ) ) ;
30
+
27
31
this . detectOS ( ) ;
28
32
const osTab = document . getElementById ( this . osName ) ;
29
33
if ( osTab !== null ) {
30
34
osTab . click ( ) ;
31
35
}
32
- this . setVersion ( data [ 0 ] . version ) ;
33
36
} )
34
37
. catch ( console . error ) ;
35
38
this . setEventListeners ( ) ;
@@ -70,8 +73,6 @@ class DownloadsController {
70
73
this . osName = 'linux' ;
71
74
} else if ( navigator . userAgent . indexOf ( 'Mac' ) !== - 1 ) {
72
75
this . osName = 'mac' ;
73
- } else if ( navigator . userAgent . indexOf ( 'X11' ) !== - 1 ) {
74
- this . osName = 'unix' ;
75
76
} else if ( navigator . userAgent . indexOf ( 'Win' ) !== - 1 ) {
76
77
this . osName = 'windows' ;
77
78
}
@@ -93,7 +94,6 @@ class DownloadsController {
93
94
handleTabClick ( e ) {
94
95
const el = ( e . target ) ;
95
96
this . activateTab ( Array . prototype . indexOf . call ( this . tabs , el ) ) ;
96
- this . setInstallTabData ( el . id ) ;
97
97
}
98
98
99
99
// get version number.
You can’t perform that action at this time.
0 commit comments