Skip to content

Commit

Permalink
Merge pull request #48 from enguerran/guest/public.mode
Browse files Browse the repository at this point in the history
fix: update initialization on public mode
  • Loading branch information
enguerran authored May 15, 2017
2 parents 75831f7 + e79a2b6 commit d838915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
this.set({config}) // force to rerender when locale change
})
if (this.get('target') !== 'mobile') {
if (this.get('target') !== 'mobile' && !this.get('isPublic')) {
await updateSettings(config)
await updateApps(config)
}
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const bindEvents = function CozyBarBindEvents () {
if (drawerVisible) {
updateVisibleStatus()
} else {
aside.addEventListener('transitionend', listener)
if (aside) {
aside.addEventListener('transitionend', listener)
}
}
})

Expand Down

0 comments on commit d838915

Please sign in to comment.