Skip to content

Commit

Permalink
Examples: Improved WebGPU error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 26, 2023
1 parent c1bc1bf commit f9035d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/capabilities/WebGPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WebGPU {

static getErrorMessage() {

const message = 'Your browser does not support <a href="https://gpuweb.github.io/gpuweb/" style="color:blue">WebGPU</a> yet.';
const message = 'Your browser does not support <a href="https://gpuweb.github.io/gpuweb/" style="color:blue">WebGPU</a> yet';

const element = document.createElement( 'div' );
element.id = 'webgpumessage';
Expand All @@ -25,7 +25,7 @@ class WebGPU {
element.style.background = '#fff';
element.style.color = '#000';
element.style.padding = '1.5em';
element.style.width = '400px';
element.style.maxWidth = '400px';
element.style.margin = '5em auto 0';

element.innerHTML = message;
Expand Down

0 comments on commit f9035d8

Please sign in to comment.