Skip to content

Commit e7f1dce

Browse files
author
DD Liu
committed
Fix for mac chrome"
1 parent a7f8562 commit e7f1dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/gui.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GUI extends React.Component {
4848
this.props.vm.attachAudioEngine(this.audioEngine);
4949
this.props.vm.initialized = true;
5050
const fontPromises = [];
51-
if (document.fonts && document.fonts.values.length) {
51+
if (document.fonts && document.fonts.values() && document.fonts.values().next) {
5252
for (const fontFace of document.fonts.values()) {
5353
fontPromises.push(fontFace.loaded);
5454
fontFace.load();

0 commit comments

Comments
 (0)