mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-17 05:34:37 +00:00
linting
This commit is contained in:
@@ -126,7 +126,7 @@ export async function createClientGame(
|
||||
consolex.log("going to init path finder");
|
||||
consolex.log("inited path finder");
|
||||
const canvas = createCanvas();
|
||||
let gameRenderer = createRenderer(
|
||||
const gameRenderer = createRenderer(
|
||||
canvas,
|
||||
gameView,
|
||||
eventBus,
|
||||
|
||||
+1
-1
@@ -210,7 +210,7 @@ export function getPersistentIDFromCookie(): string {
|
||||
|
||||
// Try to get existing cookie
|
||||
const cookies = document.cookie.split(";");
|
||||
for (let cookie of cookies) {
|
||||
for (const cookie of cookies) {
|
||||
const [cookieName, cookieValue] = cookie.split("=").map((c) => c.trim());
|
||||
if (cookieName === COOKIE_NAME) {
|
||||
return cookieValue;
|
||||
|
||||
@@ -42,7 +42,7 @@ export class TerrainLayer implements Layer {
|
||||
initImageData() {
|
||||
this.theme = this.game.config().theme();
|
||||
this.game.forEachTile((tile) => {
|
||||
let terrainColor = this.theme.terrainColor(this.game, tile);
|
||||
const terrainColor = this.theme.terrainColor(this.game, tile);
|
||||
// TODO: isn'te tileref and index the same?
|
||||
const index = this.game.y(tile) * this.game.width() + this.game.x(tile);
|
||||
const offset = index * 4;
|
||||
|
||||
@@ -18,7 +18,7 @@ declare global {
|
||||
}
|
||||
}
|
||||
// Add this at the top of your file
|
||||
declare var adsbygoogle: any[];
|
||||
declare let adsbygoogle: any[];
|
||||
|
||||
@customElement("win-modal")
|
||||
export class WinModal extends LitElement implements Layer {
|
||||
|
||||
Reference in New Issue
Block a user