Skip to content

Commit

Permalink
feat: topbar.set()
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Sep 25, 2024
1 parent f181d8b commit 39f763d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vendor/topbar/topbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ export const topbar = {
}
}
},
set(show: boolean, opts?: TopBarOptions) {
if (show) {
topbar.show(opts)
} else {
topbar.hide()
}
},
show(opts?: TopBarOptions) {
if (!browser) return // ssr protection
if (opts) topbar.config(opts)
Expand Down

0 comments on commit 39f763d

Please sign in to comment.