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

Fix firefox

parent e7f1dce7
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,9 @@ class GUI extends React.Component {
this.props.vm.attachAudioEngine(this.audioEngine);
this.props.vm.initialized = true;
const fontPromises = [];
if (document.fonts && document.fonts.values() && document.fonts.values().next) {
if (document.fonts &&
typeof document.fonts.values === 'function' &&
typeof document.fonts.values()[Symbol.iterator] === 'function') {
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