Skip to content

Commit d07234b

Browse files
Fix type error
1 parent 8860571 commit d07234b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ui/model/useWebGPU.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function useWebGPU(): WebGPUInfo {
1818
}
1919
(async () => {
2020
try {
21-
const adapter: GPUAdapter | null = await (navigator as any).gpu.requestAdapter();
21+
const adapter = await (navigator as any).gpu.requestAdapter();
2222
if (!adapter) {
2323
setInfo({ supported: false, adapter: '', features: [], error: 'No compatible adapter' });
2424
return;
@@ -34,4 +34,3 @@ export function useWebGPU(): WebGPUInfo {
3434

3535
return info;
3636
}
37-

0 commit comments

Comments
 (0)