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 258c956Copy full SHA for 258c956
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
0 commit comments