mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
18 lines
336 B
JavaScript
18 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();
|
|
}
|
|
}
|