mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
17 lines
336 B
JavaScript
17 lines
336 B
JavaScript
let currentPopulator = null;
|
|
|
|
export function registerPagePopulator(populator) {
|
|
currentPopulator = populator;
|
|
}
|
|
|
|
export function unregisterPagePopulator(populator) {
|
|
if (currentPopulator === populator) {
|
|
currentPopulator = null;
|
|
}
|
|
}
|
|
|
|
export function repopulatePage() {
|
|
if (currentPopulator) {
|
|
currentPopulator();
|
|
}
|
|
}
|