fix settings page not showing

This commit is contained in:
vapormusic 2021-12-25 16:02:56 +07:00
parent 6540825985
commit 8e4f219000
2 changed files with 7 additions and 3 deletions

View file

@ -2389,8 +2389,12 @@ var checkIfScrollIsStatic = setInterval(() => {
// WebGPU Console Notification
async function webGPU() {
const currentGPU = await navigator.gpu.requestAdapter()
console.log("WebGPU enabled on", currentGPU.name, "with feature ID", currentGPU.features.size)
try{
const currentGPU = await navigator.gpu.requestAdapter()
console.log("WebGPU enabled on", currentGPU.name, "with feature ID", currentGPU.features.size)
} catch (e) {
console.log("WebGPU disabled / WebGPU initialization failed")
}
}
webGPU().then()