mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
let sidebarInstance = null;
|
|
|
|
export function setSidebarInstance(instance) {
|
|
sidebarInstance = instance || null;
|
|
}
|
|
|
|
export function getSidebarInstance() {
|
|
return sidebarInstance;
|
|
}
|
|
|
|
export function clearSidebarInstance(instance) {
|
|
if (!instance || sidebarInstance === instance) {
|
|
sidebarInstance = null;
|
|
}
|
|
}
|
|
|