Skip to content

Commit

Permalink
Fix doc.fonts.values presence check in font-display-swap experiment (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Spark-NF authored and rsimha committed Aug 15, 2018
1 parent 5d3f6d0 commit e176437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/font-stylesheet-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function timeoutFontFaces(win) {
}
const doc = win.document;
// TODO(@cramforce) Switch to .values when FontFaceSet extern supports it.
if (!doc.fonts && !doc.fonts['values']) {
if (!doc.fonts || !doc.fonts['values']) {
return;
}
const it = doc.fonts['values']();
Expand Down

0 comments on commit e176437

Please sign in to comment.