Skip to content

Commit

Permalink
Channel typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Slipn3r committed Jul 20, 2023
1 parent 4b8c9a7 commit d0158a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit d0158a8

Please sign in to comment.