From 2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b Mon Sep 17 00:00:00 2001 From: Xeltica <7106976+Xeltica@users.noreply.github.com> Date: Sun, 31 May 2020 22:19:28 +0900 Subject: iOS Safari 上で アイコンおよびバナーのアップロードができない不具合を修正 (#6427) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix #6076 * 参考文献を明記 --- src/client/scripts/select-file.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/client/scripts/select-file.ts b/src/client/scripts/select-file.ts index 65232d3daa..462bdae9c0 100644 --- a/src/client/scripts/select-file.ts +++ b/src/client/scripts/select-file.ts @@ -41,7 +41,15 @@ export function selectFile(component: any, src: any, label: string | null, multi }).finally(() => { dialog.close(); }); + + // 一応廃棄 + (window as any).__misskey_input_ref__ = null; }; + + // https://qiita.com/fukasawah/items/b9dc732d95d99551013d + // iOS Safari で正常に動かす為のおまじない + (window as any).__misskey_input_ref__ = input; + input.click(); }; -- cgit v1.2.3-freya