Fix problem with OS X Lion STIX font fix being applied to all platforms when Chrome is used.

This commit is contained in:
Davide P. Cervone 2012-10-17 17:52:58 -04:00
parent 5263c5e21c
commit e0273d1704
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1511,8 +1511,10 @@
browser.STIXfontBug = browser.versionAtLeast("5.1") && browser.isMac;
},
Chrome: function (browser) {
var match = navigator.appVersion.match(/AppleWebKit\/(\d+)/);
if (match && parseInt(match[1]) > 534) {browser.STIXfontBug = true}
if (browser.isMac) {
var match = navigator.appVersion.match(/AppleWebKit\/(\d+)/);
if (match && parseInt(match[1]) > 534) {browser.STIXfontBug = true}
}
}
});