Index: trunk/extensions/WebFonts/js/webfonts.js |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | $.webfonts.buildMenu(config); |
162 | 162 | //see if there is a font in cookie |
163 | 163 | var cookie_font = $.cookie('webfonts-font') || config[0]; |
164 | | - if (cookie_font !== 'none') { |
| 164 | + if (cookie_font && cookie_font !== 'none') { |
165 | 165 | $.webfonts.set(cookie_font); |
166 | 166 | //mark it as checked |
167 | 167 | $('#webfont-'+cookie_font).attr('checked', 'checked'); |