|
@@ -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';
|
|
@@ -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;
|