From 67ef6085cef3bd0517fe1e64fb0f8a201715669d Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 14 Jul 2022 15:19:13 +0200 Subject: [PATCH] initialising at the beginning --- frontend/src/ts/controllers/ad-controller.ts | 38 +++++++++----------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/frontend/src/ts/controllers/ad-controller.ts b/frontend/src/ts/controllers/ad-controller.ts index dfef11028..aee752f62 100644 --- a/frontend/src/ts/controllers/ad-controller.ts +++ b/frontend/src/ts/controllers/ad-controller.ts @@ -8,9 +8,8 @@ import * as TestActive from "../states/test-active"; const breakpoint = 900; let widerThanBreakpoint = true; -let initialised = false; - export function init(): void { + if (Config.ads === "off") return; $("head").append(`