Skip to content

Commit ba2769c

Browse files
committed
Update: Add custom string for load checking
1 parent 29401ea commit ba2769c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/modules/google/googlefontapi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ goog.scope(function () {
4141
this.configuration_['text']
4242
);
4343
var fontFamilies = this.configuration_['families'];
44+
var fontTestStrings = this.configuration_['text']
4445
fontApiUrlBuilder.setFontFamilies(fontFamilies);
4546

4647
var fontApiParser = new FontApiParser(fontFamilies);
4748
fontApiParser.parse();
4849

4950
domHelper.loadStylesheet(fontApiUrlBuilder.build(), waiter.startWaitingLoad());
5051
waiter.waitWhileNeededThen(function() {
51-
onReady(fontApiParser.getFonts(), fontApiParser.getFontTestStrings(), GoogleFontApi.METRICS_COMPATIBLE_FONTS);
52+
onReady(fontApiParser.getFonts(), fontTestStrings || fontApiParser.getFontTestStrings(), GoogleFontApi.METRICS_COMPATIBLE_FONTS);
5253
});
5354
};
5455
});

webfontloader.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)