Commit 63e98688 authored by Thomas Parisot's avatar Thomas Parisot

fix(tests): document.fonts is not available in env testing

parent 97197ab5
......@@ -475,7 +475,7 @@ class Chunker {
loadFonts() {
let fontPromises = [];
document.fonts.forEach((fontFace) => {
(document.fonts || []).forEach((fontFace) => {
if (fontFace.status !== "loaded") {
let fontLoaded = fontFace.load().then((r) => {
return fontFace.family;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment