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:
parent
470fcb42f1
commit
0bca522c59
@ -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) {
|
||||
|
||||
@ -42,7 +42,6 @@ export class AnimationFrame {
|
||||
}
|
||||
|
||||
start() {
|
||||
assertAlways(window.requestAnimationFrame, "requestAnimationFrame is not supported!");
|
||||
this.handleAnimationFrame();
|
||||
}
|
||||
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user