refactor(#10336): semantics

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-21 11:58:58 +09:00
parent 0ac4d744fd
commit bf527cd6e7
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
2 changed files with 8 additions and 2 deletions

View file

@ -64,7 +64,7 @@ const preview = {
const story = Story();
if (!initialized) {
const channel = addons.getChannel();
requestIdleCallback(() => {
(globalThis.requestIdleCallback || setTimeout)(() => {
channel.emit(FORCE_REMOUNT, { storyId: context.id });
});
}