From be7ccd6a54ba24931fc84ad178c890a77dd25b30 Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 14 Jul 2022 15:51:42 +0200 Subject: [PATCH] Revert "initialising at the beginning" This reverts commit 67ef6085cef3bd0517fe1e64fb0f8a201715669d. --- frontend/src/ts/controllers/ad-controller.ts | 38 +++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/frontend/src/ts/controllers/ad-controller.ts b/frontend/src/ts/controllers/ad-controller.ts index aee752f62..dfef11028 100644 --- a/frontend/src/ts/controllers/ad-controller.ts +++ b/frontend/src/ts/controllers/ad-controller.ts @@ -8,8 +8,9 @@ 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(`