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)