Index: trunk/extensions/WebFonts/resources/ext.webfonts.js |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | var cookieFont = $.cookie( 'webfonts-font' ); |
185 | 185 | var selectedFont = null; |
186 | 186 | // check whether this font is for the current userlang/contentlang |
187 | | - if ( $.inArray( cookieFont, config ) !== -1 ) { |
| 187 | + if ( $.inArray( cookieFont, config ) !== -1 || cookieFont === 'none' ) { |
188 | 188 | selectedFont = cookieFont; |
189 | 189 | } |
190 | 190 | else{ |
— | — | @@ -191,7 +191,7 @@ |
192 | 192 | // for current language. |
193 | 193 | selectedFont = config[0]; |
194 | 194 | } |
195 | | - if ( selectedFont && selectedFont !== 'none' ) { |
| 195 | + if ( selectedFont ) { |
196 | 196 | mw.webfonts.set( selectedFont ); |
197 | 197 | // Mark it as checked |
198 | 198 | $( '#'+fontID( selectedFont ) ).prop( 'checked', true ); |