summaryrefslogtreecommitdiff
path: root/src/web/app/boot.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-21 09:49:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-21 09:49:35 +0900
commitb66bac7851c331c8281418f9aa5a6068edc552d7 (patch)
treeb2530456ce03c204f9b8d432ca261e67e7c72a5c /src/web/app/boot.js
parentMerge remote-tracking branch 'refs/remotes/origin/master' into no-tag-ls (diff)
downloadmisskey-b66bac7851c331c8281418f9aa5a6068edc552d7.tar.gz
misskey-b66bac7851c331c8281418f9aa5a6068edc552d7.tar.bz2
misskey-b66bac7851c331c8281418f9aa5a6068edc552d7.zip
wip
Diffstat (limited to 'src/web/app/boot.js')
-rw-r--r--src/web/app/boot.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index ab147eb562..06e457e2b3 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -27,13 +27,16 @@ riot.mixin({
// ↓ iOS待ちPolyfill (SEE: http://caniuse.com/#feat=fetch)
require('whatwg-fetch');
-// ↓ NodeList、HTMLCollectionで forEach を使えるようにする
+// ↓ NodeList、HTMLCollection、FileListで forEach を使えるようにする
if (NodeList.prototype.forEach === undefined) {
NodeList.prototype.forEach = Array.prototype.forEach;
}
if (HTMLCollection.prototype.forEach === undefined) {
HTMLCollection.prototype.forEach = Array.prototype.forEach;
}
+if (FileList.prototype.forEach === undefined) {
+ FileList.prototype.forEach = Array.prototype.forEach;
+}
// ↓ iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする
try {