fix: resolve typescript and build errors across admin and guest apps
This commit is contained in:
@@ -3,10 +3,10 @@ export function prefetchMobileRoutes() {
|
||||
|
||||
const schedule = (callback: () => void) => {
|
||||
if ('requestIdleCallback' in window) {
|
||||
(window as Window & { requestIdleCallback: (cb: () => void) => number }).requestIdleCallback(callback);
|
||||
(window as any).requestIdleCallback(callback);
|
||||
return;
|
||||
}
|
||||
window.setTimeout(callback, 1200);
|
||||
(window as any).setTimeout(callback, 1200);
|
||||
};
|
||||
|
||||
schedule(() => {
|
||||
|
||||
Reference in New Issue
Block a user