[Misc] Add " (Beta)" to site title and version display on beta (#6418)

This commit is contained in:
NightKev 2025-09-01 07:02:40 -07:00 committed by GitHub
parent 45a162059c
commit 446908ae13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,10 @@ import InputTextPlugin from "phaser3-rex-plugins/plugins/inputtext-plugin";
import TransitionImagePackPlugin from "phaser3-rex-plugins/templates/transitionimagepack/transitionimagepack-plugin";
import UIPlugin from "phaser3-rex-plugins/templates/ui/ui-plugin";
if (import.meta.env.DEV) {
document.title += " (Beta)";
}
// Catch global errors and display them in an alert so users can report the issue.
window.onerror = (_message, _source, _lineno, _colno, error) => {
console.error(error);

View File

@ -141,7 +141,8 @@ export class TitleUiHandler extends OptionSelectUiHandler {
}),
);
this.appVersionText.setText("v" + version);
const betaText = import.meta.env.DEV ? " (Beta)" : "";
this.appVersionText.setText("v" + version + betaText);
const ui = this.getUi();