summaryrefslogtreecommitdiff
path: root/src/web/app/boot.js
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-22 02:18:57 +0900
committerGitHub <noreply@github.com>2017-02-22 02:18:57 +0900
commit82a28f4c052e9c931c4844f0f330ec301c111366 (patch)
tree321f492a7ad024e568786b831dfc864adeb77aea /src/web/app/boot.js
parentUpdate README.md (diff)
parentFix bugs (diff)
downloadmisskey-82a28f4c052e9c931c4844f0f330ec301c111366.tar.gz
misskey-82a28f4c052e9c931c4844f0f330ec301c111366.tar.bz2
misskey-82a28f4c052e9c931c4844f0f330ec301c111366.zip
Merge pull request #193 from syuilo/no-tag-ls
No tag ls
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 {