From 64bccf4b48abdb4e293dd83ed515248c46c04a22 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Sat, 10 Apr 2021 12:14:37 +0800 Subject: [PATCH] Fix bad merge --- lib/api/src/modules/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/src/modules/url.ts b/lib/api/src/modules/url.ts index 9359cde6c4a..d2056063500 100644 --- a/lib/api/src/modules/url.ts +++ b/lib/api/src/modules/url.ts @@ -169,7 +169,7 @@ export const init: ModuleFn = ({ store, navigate, state, provider, fullAPI, ...r fullAPI.on(STORY_ARGS_UPDATED, ({ args }) => { if ('requestIdleCallback' in globalWindow) { if (handleOrId) globalWindow.cancelIdleCallback(handleOrId); - handleOrId = globalWindow.requestIdleCallback(() => updateArgsParam(args), { timeout: 1000 }); + handleOrId = globalWindow.requestIdleCallback(updateArgsParam, { timeout: 1000 }); } else { if (handleOrId) clearTimeout(handleOrId); setTimeout(updateArgsParam, 100);