From 2813ec1032ae7161a440e135e2df56bdb3a5f1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Wed, 17 Apr 2024 11:21:37 +0200 Subject: [PATCH] Use synchronous GPUAdapter.info when available --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d831b48..20ff16b 100644 --- a/index.js +++ b/index.js @@ -298,7 +298,7 @@ async function adapterToElements(adapter) { return; } // UGH! - const adapterInfo = await (adapter.requestAdapterInfo ? adapter.requestAdapterInfo() : undefined); + const adapterInfo = adapter.info || await (adapter.requestAdapterInfo ? adapter.requestAdapterInfo() : undefined); const limitsSectionElem = el('tr', {className: 'section'}, [ el('td', {colSpan: 2}, [createHeading('div', '-', 'limits:')]),