Skip to content

Commit

Permalink
Added support for iPhone, iPod, iPad.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiele committed Dec 1, 2010
1 parent 4f671cd commit 319e090
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/google/googlefontapi.js
Expand Up @@ -10,19 +10,6 @@ webfont.GoogleFontApi = function(userAgent, domHelper, configuration) {
webfont.GoogleFontApi.NAME = 'google';

webfont.GoogleFontApi.prototype.supportUserAgent = function(userAgent, support) {
if (userAgent.getPlatform().match(/iPad|iPod|iPhone/) != null) {
support(true);
return;
}
if (userAgent.getPlatform().match(/Android/) != null) {
if (userAgent.getVersion().indexOf('2.2') != -1) {
support(true);
return;
} else {
support(false);
return;
}
}
support(userAgent.isSupportingWebFont());
};

Expand Down

0 comments on commit 319e090

Please sign in to comment.