mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-03 20:26:44 -06: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 });
|
||
|
}
|