Index: trunk/extensions/WebFonts/resources/ext.webfonts.preview.js |
— | — | @@ -6,6 +6,10 @@ |
7 | 7 | |
8 | 8 | var showPreview = function () { |
9 | 9 | var font = $( 'select#webfonts-font-chooser' ).val(); |
| 10 | + if ( font === null ) { |
| 11 | + return true; |
| 12 | + } |
| 13 | + |
10 | 14 | var $downloadLink = $( 'a#webfonts-preview-download' ); |
11 | 15 | var $previewBox = $( 'div#webfonts-preview-area' ); |
12 | 16 | mw.webfonts.addFont( font ); |