mirror of
https://github.com/Radarr/Radarr
synced 2026-05-03 02:54:07 +02: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();
|
|
}
|
|
}
|