瀏覽代碼

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

Mario Zechner 1 年之前
父節點
當前提交
ddace9b1c7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-ts/spine-player/src/Player.ts

+ 1 - 1
spine-ts/spine-player/src/Player.ts

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