summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-23 23:31:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-23 23:31:28 +0900
commitd3148590f0ce882a43a405cc5dc04db6cde5aed5 (patch)
tree678a7cb461c1b5b13c800343d358c1cf85b6496c /src/web
parentMerge pull request #198 from syuilo/greenkeeper/inquirer-3.0.3 (diff)
downloadsharkey-d3148590f0ce882a43a405cc5dc04db6cde5aed5.tar.gz
sharkey-d3148590f0ce882a43a405cc5dc04db6cde5aed5.tar.bz2
sharkey-d3148590f0ce882a43a405cc5dc04db6cde5aed5.zip
[Client] Fix bug
Diffstat (limited to 'src/web')
-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 d39e46861c..44ac6bac2e 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -29,7 +29,7 @@ riot.mixin({
// ↓ iOS待ちPolyfill (SEE: http://caniuse.com/#feat=fetch)
require('whatwg-fetch');
-// ↓ NodeList、HTMLCollection、FileListで forEach を使えるようにする
+// ↓ NodeList、HTMLCollection、FileList、DataTransferItemListで forEach を使えるようにする
if (NodeList.prototype.forEach === undefined) {
NodeList.prototype.forEach = Array.prototype.forEach;
}
@@ -39,6 +39,9 @@ if (HTMLCollection.prototype.forEach === undefined) {
if (FileList.prototype.forEach === undefined) {
FileList.prototype.forEach = Array.prototype.forEach;
}
+if (DataTransferItemList.prototype.forEach === undefined) {
+ DataTransferItemList.prototype.forEach = Array.prototype.forEach;
+}
// ↓ iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする
try {