mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-21 18:18:20 +09:00
8 lines
174 B
TypeScript
8 lines
174 B
TypeScript
|
const canvas = new OffscreenCanvas(1, 1);
|
||
|
const gl = canvas.getContext('webgl2');
|
||
|
if (gl) {
|
||
|
postMessage({ result: true });
|
||
|
} else {
|
||
|
postMessage({ result: false });
|
||
|
}
|