mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
Check navigator.gpu synchronously in main() before calling the WebGPU C API. Previously the error was reported in an async callback that raced with onRuntimeInitialized, which hid the loading div before the error message could appear. Also re-show the loading div and set window._webgpuError in the adapter callback as a fallback. Assisted-by: Claude <noreply@anthropic.com>