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 cbc34ab commit b30042aCopy full SHA for b30042a
injected/src/utils.js
@@ -269,7 +269,8 @@ function isAppleSilicon() {
269
270
// Best guess if the device is an Apple Silicon
271
// https://stackoverflow.com/a/65412357
272
- isAppleSiliconCache = gl?.getSupportedExtensions()?.indexOf('WEBGL_compressed_texture_etc') !== -1;
+ const compressedTextureValue = gl?.getSupportedExtensions()?.indexOf('WEBGL_compressed_texture_etc');
273
+ isAppleSiliconCache = typeof compressedTextureValue === 'number' && compressedTextureValue !== -1;
274
return isAppleSiliconCache;
275
}
276
@@ -305,7 +306,7 @@ const functionMap = {
305
306
debugger;
307
},
308
- noop: () => {},
309
+ noop: () => { },
310
};
311
312
/**
0 commit comments