Просмотр исходного кода

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

Mario Zechner 1 год назад
Родитель
Сommit
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);
 			this.sceneRenderer = new SceneRenderer(this.canvas, this.context, true);
 			if (config.showLoading) this.loadingScreen = new LoadingScreen(this.sceneRenderer);
 			if (config.showLoading) this.loadingScreen = new LoadingScreen(this.sceneRenderer);
 		} catch (e) {
 		} 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;
 			return null;
 		}
 		}