diff --git a/src/vendor/topbar/topbar.ts b/src/vendor/topbar/topbar.ts index 76ffc84..afcd9aa 100644 --- a/src/vendor/topbar/topbar.ts +++ b/src/vendor/topbar/topbar.ts @@ -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)