[ts][player] Fix error message in case WebGL context could not be created.

This commit is contained in:
Mario Zechner 2024-04-23 15:28:41 +02:00
parent ac7f0654a6
commit ddace9b1c7

View File

@ -336,7 +336,7 @@ export class SpinePlayer implements Disposable {
this.sceneRenderer = new SceneRenderer(this.canvas, this.context, true);
if (config.showLoading) this.loadingScreen = new LoadingScreen(this.sceneRenderer);
} catch (e) {
this.showError("Sorry, your browser does not support \nPlease use the latest version of Firefox, Chrome, Edge, or Safari.", e as any);
this.showError("Sorry, your browser does not support WebGL.\nPlease use the latest version of Firefox, Chrome, Edge, or Safari.", e as any);
return null;
}