We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7f1dce commit b679688Copy full SHA for b679688
src/containers/gui.jsx
@@ -48,7 +48,9 @@ class GUI extends React.Component {
48
this.props.vm.attachAudioEngine(this.audioEngine);
49
this.props.vm.initialized = true;
50
const fontPromises = [];
51
- if (document.fonts && document.fonts.values() && document.fonts.values().next) {
+ if (document.fonts &&
52
+ typeof document.fonts.values === 'function' &&
53
+ typeof document.fonts.values()[Symbol.iterator] === 'function') {
54
for (const fontFace of document.fonts.values()) {
55
fontPromises.push(fontFace.loaded);
56
fontFace.load();
0 commit comments