mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-11 09:11:50 +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
|
// Track if the window is visible
|
||||||
this.pageVisible = true;
|
this.pageVisible = true;
|
||||||
|
|
||||||
// Track if the app is paused (cordova)
|
|
||||||
this.applicationPaused = false;
|
|
||||||
|
|
||||||
/** @type {TypedTrackedState<boolean>} */
|
/** @type {TypedTrackedState<boolean>} */
|
||||||
this.trackedIsRenderable = new TrackedState(this.onAppRenderableStateChanged, this);
|
this.trackedIsRenderable = new TrackedState(this.onAppRenderableStateChanged, this);
|
||||||
|
|
||||||
@ -232,7 +229,7 @@ export class Application {
|
|||||||
* Returns if the app is currently visible
|
* Returns if the app is currently visible
|
||||||
*/
|
*/
|
||||||
isRenderable() {
|
isRenderable() {
|
||||||
return !this.applicationPaused && this.pageVisible;
|
return this.pageVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
onAppRenderableStateChanged(renderable) {
|
onAppRenderableStateChanged(renderable) {
|
||||||
|
|||||||
@ -42,7 +42,6 @@ export class AnimationFrame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
assertAlways(window.requestAnimationFrame, "requestAnimationFrame is not supported!");
|
|
||||||
this.handleAnimationFrame();
|
this.handleAnimationFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -43,10 +43,6 @@ export class PreloadState extends GameState {
|
|||||||
this.startLoading();
|
this.startLoading();
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendBeacon() {
|
|
||||||
// TODO: Get rid of this analytics stuff
|
|
||||||
}
|
|
||||||
|
|
||||||
onLeave() {
|
onLeave() {
|
||||||
// this.dialogs.cleanup();
|
// this.dialogs.cleanup();
|
||||||
}
|
}
|
||||||
@ -227,8 +223,6 @@ export class PreloadState extends GameState {
|
|||||||
showFailMessage(text) {
|
showFailMessage(text) {
|
||||||
logger.error("App init failed:", text);
|
logger.error("App init failed:", text);
|
||||||
|
|
||||||
const email = "bugs@shapez.io";
|
|
||||||
|
|
||||||
const subElement = document.createElement("div");
|
const subElement = document.createElement("div");
|
||||||
subElement.classList.add("failureBox");
|
subElement.classList.add("failureBox");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user