Skip to content
Snippets Groups Projects
Commit e7f1dce7 authored by DD Liu's avatar DD Liu
Browse files

Fix for mac chrome"

parent a7f85622
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class GUI extends React.Component {
this.props.vm.attachAudioEngine(this.audioEngine);
this.props.vm.initialized = true;
const fontPromises = [];
if (document.fonts && document.fonts.values.length) {
if (document.fonts && document.fonts.values() && document.fonts.values().next) {
for (const fontFace of document.fonts.values()) {
fontPromises.push(fontFace.loaded);
fontFace.load();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment