From 488754437dbc5465662dcfdff20b3ce81a48cb73 Mon Sep 17 00:00:00 2001 From: "(Fairy)Phy" Date: Sat, 11 Mar 2023 13:40:22 +0900 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20Safari=E3=81=A7=E3=83=97?= =?UTF-8?q?=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3=E3=81=8C=E8=A4=87=E6=95=B0?= =?UTF-8?q?=E3=81=82=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AB=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E3=81=AB=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=81=BE=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=20(#1029?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Safariでプラグインが複数ある場合に正常に読み込まれない問題を修正 * Update packages/frontend/src/init.ts Co-authored-by: rinsuki <428rinsuki+git@gmail.com> * Update packages/frontend/src/init.ts Co-authored-by: rinsuki <428rinsuki+git@gmail.com> --------- Co-authored-by: syuilo Co-authored-by: rinsuki <428rinsuki+git@gmail.com> --- packages/frontend/src/init.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/init.ts b/packages/frontend/src/init.ts index 0a626b36c6..a2dff87e8e 100644 --- a/packages/frontend/src/init.ts +++ b/packages/frontend/src/init.ts @@ -343,7 +343,9 @@ stream.on('_disconnected_', async () => { }); for (const plugin of ColdDeviceStorage.get('plugins').filter(p => p.active)) { - import('./plugin').then(({ install }) => { + import('./plugin').then(async ({ install }) => { + // Workaround for https://bugs.webkit.org/show_bug.cgi?id=242740 + await new Promise(r => setTimeout(r, 0)); install(plugin); }); }