From ef6e1a223c2ab48ccb6f1c73d59f512fe5318977 Mon Sep 17 00:00:00 2001 From: tobspr Date: Wed, 20 Apr 2022 11:18:31 +0200 Subject: [PATCH] Fix discount being active in standalone --- src/js/core/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/core/config.js b/src/js/core/config.js index ca84c573..0ee90cb5 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -169,4 +169,5 @@ if (G_IS_DEV && globalConfig.debug.noArtificialDelays) { globalConfig.warmupTimeSecondsRegular = 0; } -globalConfig.currentDiscount.active = new Date().getTime() < globalConfig.currentDiscount.until; +globalConfig.currentDiscount.active = + !G_IS_STANDALONE && new Date().getTime() < globalConfig.currentDiscount.until;