Look at WebKit version instead of checking Safari

Reviewers: emily

Reviewed By: emily

Differential Revision: http://phabricator.khanacademy.org/D3317
This commit is contained in:
Ben Alpert
2013-08-01 17:43:06 -07:00
parent aa4e05a7cf
commit 6883017bc4
2 changed files with 29 additions and 8 deletions

View File

@@ -86,8 +86,9 @@ var buildGroup = function(style, color, group, prev) {
} else if (group.type === "close") {
return makeSpan("mclose" + color, [textit(group.value)]);
} else if (group.type === "frac") {
if (utils.isSafari) {
throw new ParseError("KaTeX fractions don't work in Safari");
if (utils.isBuggyWebKit) {
throw new ParseError(
"KaTeX fractions don't work in WebKit <= 537.1");
}
var fstyle = style;