From dcd41533753d5b66303609382f2d5c18cbda7620 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Feb 2017 23:31:28 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/boot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index d39e46861..44ac6bac2 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 {