1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-09 16:21:51 +00:00

Remove some outdated browser checks

Also remove some type definitions that are definitely no longer needed
or were never correct.
This commit is contained in:
Даниїл Григор'єв 2025-04-13 04:39:01 +03:00
parent 470fcb42f1
commit 0bca522c59
No known key found for this signature in database
GPG Key ID: B890DF16341D8C1D
3 changed files with 1 additions and 11 deletions

View File

@ -79,9 +79,6 @@ export class Application {
// Track if the window is visible
this.pageVisible = true;
// Track if the app is paused (cordova)
this.applicationPaused = false;
/** @type {TypedTrackedState<boolean>} */
this.trackedIsRenderable = new TrackedState(this.onAppRenderableStateChanged, this);
@ -232,7 +229,7 @@ export class Application {
* Returns if the app is currently visible
*/
isRenderable() {
return !this.applicationPaused && this.pageVisible;
return this.pageVisible;
}
onAppRenderableStateChanged(renderable) {

View File

@ -42,7 +42,6 @@ export class AnimationFrame {
}
start() {
assertAlways(window.requestAnimationFrame, "requestAnimationFrame is not supported!");
this.handleAnimationFrame();
}

View File

@ -43,10 +43,6 @@ export class PreloadState extends GameState {
this.startLoading();
}
async sendBeacon() {
// TODO: Get rid of this analytics stuff
}
onLeave() {
// this.dialogs.cleanup();
}
@ -227,8 +223,6 @@ export class PreloadState extends GameState {
showFailMessage(text) {
logger.error("App init failed:", text);
const email = "bugs@shapez.io";
const subElement = document.createElement("div");
subElement.classList.add("failureBox");