Skip to content

Commit

Permalink
Fixed font warning in Opera
Browse files Browse the repository at this point in the history
I had to make the regex less specific as it was not matching the font
string in Opera and the warning message about not allowing fonts was
being displayed.
  • Loading branch information
neomorphic committed Dec 17, 2013
1 parent 0f13a70 commit 2efa148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/static/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// Check that CSS fonts haven't been disabled.
// some people cant be trusted to do the right thing, so we have to
// tell them that they screwed up.
if ($('.canvas_logo').length > 0 && !/^.*?Helvetica Neue.*?Helvetica.*?Arial.*?sans-serif/.test($('.canvas_logo').css('font-family'))) {
if ($('.canvas_logo').length > 0 && !/^.*?Helvetica Neue/.test($('.canvas_logo').css('font-family'))) {
$('.logo_wrapper').after('<div class="offset1 span11"><div id="message" class="alert alert-error"><span>It looks like you have set your browser to prevent loading fonts chosen by us. This may cause a significant drop in the quality of the logo rendered. For the best logo, we recommend allowing this site to choose its own fonts. Information on how to do this should be provided in the help documentation provided with your browser.</span></div></div>');
}

Expand Down

0 comments on commit 2efa148

Please sign in to comment.