Fix prettier issue
This commit is contained in:
parent
5d360c8770
commit
ecd0e86dc6
@ -3,7 +3,7 @@
|
|||||||
import { errorScreenStore } from "../../Stores/ErrorScreenStore";
|
import { errorScreenStore } from "../../Stores/ErrorScreenStore";
|
||||||
import { gameManager } from "../../Phaser/Game/GameManager";
|
import { gameManager } from "../../Phaser/Game/GameManager";
|
||||||
import { get } from "svelte/store";
|
import { get } from "svelte/store";
|
||||||
import {onDestroy} from "svelte";
|
import { onDestroy } from "svelte";
|
||||||
|
|
||||||
import logoImg from "../images/logo-min-white.png";
|
import logoImg from "../images/logo-min-white.png";
|
||||||
let logo = gameManager?.currentStartedRoom?.loginSceneLogo ?? logoImg;
|
let logo = gameManager?.currentStartedRoom?.loginSceneLogo ?? logoImg;
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
const image = errorScreen.image ?? (errorScreen.type === "retry" ? cup : error);
|
const image = errorScreen.image ?? (errorScreen.type === "retry" ? cup : error);
|
||||||
|
|
||||||
function click() {
|
function click() {
|
||||||
if (errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect);
|
if (errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect);
|
||||||
else if (errorScreen.type === "redirect" && window.history.length > 2) history.back();
|
else if (errorScreen.type === "redirect" && window.history.length > 2) history.back();
|
||||||
else window.location.reload();
|
else window.location.reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user