File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const variants = [
2- [ 'a' , 0.8 ] ,
3- [ 'b ' , 0.2 ]
2+ [ 'a' , 0.7 ] ,
3+ [ 'c ' , 0.3 ]
44]
55
66let chosenVariant = ''
@@ -16,17 +16,11 @@ for (let variant of variants) {
1616
1717document . body . classList . add ( 'variant-' + chosenVariant )
1818
19- if ( chosenVariant === 'b' ) {
20- Array . from ( document . querySelectorAll ( '.download-button .button-label' ) ) . forEach ( function ( label ) {
21- const platform = getUserPlatform ( )
22- if ( platform === 'mac' ) {
23- label . textContent = 'Download for macOS' ;
24- } else if ( platform === 'windows' ) {
25- label . textContent = 'Download for Windows' ;
26- } else if ( platform === 'linux' ) {
27- label . textContent = 'Install for Linux' ;
28- }
29- } ) ;
19+ if ( chosenVariant === 'c' ) {
20+ const platform = getUserPlatform ( )
21+ if ( platform === 'windows' ) {
22+ document . getElementById ( 'header-image' ) . src = 'splash/tabbar-windows.png' ;
23+ }
3024}
3125
3226if ( window . location . hostname === 'minbrowser.org' ) {
You can’t perform that action at this time.
0 commit comments