mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 06:15:20 +01:00
[Misc] Add " (Beta)" to site title and version display on beta (#6418)
This commit is contained in:
parent
45a162059c
commit
446908ae13
@ -10,6 +10,10 @@ import InputTextPlugin from "phaser3-rex-plugins/plugins/inputtext-plugin";
|
|||||||
import TransitionImagePackPlugin from "phaser3-rex-plugins/templates/transitionimagepack/transitionimagepack-plugin";
|
import TransitionImagePackPlugin from "phaser3-rex-plugins/templates/transitionimagepack/transitionimagepack-plugin";
|
||||||
import UIPlugin from "phaser3-rex-plugins/templates/ui/ui-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.
|
// Catch global errors and display them in an alert so users can report the issue.
|
||||||
window.onerror = (_message, _source, _lineno, _colno, error) => {
|
window.onerror = (_message, _source, _lineno, _colno, error) => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|||||||
@ -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();
|
const ui = this.getUi();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user