From d0158a8c1d2f8ed5da9d59cc7bf1121c997536de Mon Sep 17 00:00:00 2001 From: Slipn3r <61992469+Slipn3r@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:19:35 +0300 Subject: [PATCH] Channel typo --- frontend/src/layouts/MainLayout.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/layouts/MainLayout.vue b/frontend/src/layouts/MainLayout.vue index 5176faa..d791572 100644 --- a/frontend/src/layouts/MainLayout.vue +++ b/frontend/src/layouts/MainLayout.vue @@ -858,19 +858,21 @@ export default defineComponent({ if (localStorage.getItem('installFromFile') === 'true') { this.flags.installFromFile = true } + if (localStorage.getItem('catalogChannel') && localStorage.getItem('catalogChannel') !== 'production') { + this.flags.catalogChannelProduction = false + } if (localStorage.getItem('catalogEnabled') === 'true') { this.flags.catalogEnabled = true } - if (localStorage.getItem('catalogChannel') && localStorage.getItem('catalogChannel') !== 'production') { - this.flags.catalogChannelProduction = false - } if (!process.env.PRODUCTION) { this.flags.catalogCanSwitchChannel = true } // FIXME if (location.host === 'lab.flipper.net') { this.flags.catalogCanSwitchChannel = false + this.flags.catalogChannelProduction = true + localStorage.setItem('catalogChannel', 'production') } else if (location.host === 'lab.flipp.dev') { this.flags.catalogCanSwitchChannel = false if (!localStorage.getItem('catalogChannel')) {