mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-08-21 05:44:48 +00:00

* Suppress ReferenceError on some environments (i.e. older iOS) * fix * fix * lint * adopt suggestion by acid-chicken
7 lines
205 B
TypeScript
7 lines
205 B
TypeScript
const canvas = globalThis.OffscreenCanvas && new OffscreenCanvas(1, 1);
|
|
const gl = canvas?.getContext('webgl2');
|
|
if (gl) {
|
|
postMessage({ result: true });
|
|
} else {
|
|
postMessage({ result: false });
|
|
}
|