WebGPU notice suggests Chromium-based browsers, not Edge (t90)
Written by the local model (qwen3-coder-30b) in a sandboxed worktree via local-run; reviewed by Claude. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ function renderCapabilityNotice() {
|
||||
const messages = [];
|
||||
if (!CAPS.isolated) messages.push("Deepgrain needs to be served (for example with python3 tools/serve.py) so it can use all CPU cores; opened from a file it can't.");
|
||||
if (!CAPS.webgpu) messages.push(/Firefox\//.test(navigator.userAgent)
|
||||
? 'WebGPU is unavailable. In Firefox, open about:config and set dom.webgpu.enabled to true, then restart. On Linux, use Firefox Nightly. If no graphics adapter is available, try Chrome or Edge.'
|
||||
: 'WebGPU is unavailable. Use a browser with WebGPU (Chrome or Edge).');
|
||||
? 'WebGPU is unavailable. In Firefox, open about:config and set dom.webgpu.enabled to true, then restart. On Linux, use Firefox Nightly. If no graphics adapter is available, try a Chromium-based browser such as Chrome, Chromium or Brave.'
|
||||
: 'WebGPU is unavailable. Use a Chromium-based browser such as Chrome, Chromium or Brave.');
|
||||
if (GPU.error) messages.push('WebGPU could not start: ' + GPU.error);
|
||||
const notice = $('cap-notice');
|
||||
notice.replaceChildren(...messages.map(text => { const p = document.createElement('p'); p.textContent = text; return p; }));
|
||||
|
||||
Reference in New Issue
Block a user