From d35076bb28da62efe43a65bf3baab0554c59d6ae Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 29 Mar 2026 15:18:18 -0600 Subject: [PATCH] [gpu] Fix line break in WebGPU error message Co-Authored-By: Claude Opus 4.6 (1M context) --- util/gpu/web/hb-gpu-web-webgpu.cc | 3 +-- util/gpu/web/shell.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/util/gpu/web/hb-gpu-web-webgpu.cc b/util/gpu/web/hb-gpu-web-webgpu.cc index 9fe48b430..f814f04ac 100644 --- a/util/gpu/web/hb-gpu-web-webgpu.cc +++ b/util/gpu/web/hb-gpu-web-webgpu.cc @@ -717,8 +717,7 @@ on_adapter (WGPURequestAdapterStatus status, EM_ASM ({ var el = document.getElementById ('loading'); if (el) { - var html = 'WebGPU adapter not available.

' + - 'See browser support.'; if (navigator.userAgent.indexOf ('Linux') !== -1 && navigator.userAgent.indexOf ('Chrome') !== -1) diff --git a/util/gpu/web/shell.html b/util/gpu/web/shell.html index 8f34cf4e5..48de0ee26 100644 --- a/util/gpu/web/shell.html +++ b/util/gpu/web/shell.html @@ -113,8 +113,7 @@ space: animate · b: dark mode · g: gamma · r: reset · =/-: zoom /* Early WebGPU availability check */ if (isWebGPU && !navigator.gpu) { var el = document.getElementById('loading'); - var html = 'WebGPU not available in this browser.

' + - 'See browser support.'; if (navigator.userAgent.indexOf('Linux') !== -1 && navigator.userAgent.indexOf('Chrome') !== -1)