summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXeltica <7106976+Xeltica@users.noreply.github.com>2020-05-31 22:19:28 +0900
committerGitHub <noreply@github.com>2020-05-31 22:19:28 +0900
commit2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b (patch)
tree4fdab58bb8cb74ad131ecc9620d417109aaf92ff
parentfix(client): 全既読系ボタンのAPIの指定が間違っているのを... (diff)
downloadsharkey-2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b.tar.gz
sharkey-2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b.tar.bz2
sharkey-2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b.zip
iOS Safari 上で アイコンおよびバナーのアップロードができない不具合を修正 (#6427)
* fix #6076 * 参考文献を明記
-rw-r--r--src/client/scripts/select-file.ts8
1 files changed, 8 insertions, 0 deletions
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();
};