mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 20:49:06 +01:00
[Client] Fix bug
This commit is contained in:
parent
8b79acc9e5
commit
dcd4153375
@ -29,7 +29,7 @@ riot.mixin({
|
|||||||
// ↓ iOS待ちPolyfill (SEE: http://caniuse.com/#feat=fetch)
|
// ↓ iOS待ちPolyfill (SEE: http://caniuse.com/#feat=fetch)
|
||||||
require('whatwg-fetch');
|
require('whatwg-fetch');
|
||||||
|
|
||||||
// ↓ NodeList、HTMLCollection、FileListで forEach を使えるようにする
|
// ↓ NodeList、HTMLCollection、FileList、DataTransferItemListで forEach を使えるようにする
|
||||||
if (NodeList.prototype.forEach === undefined) {
|
if (NodeList.prototype.forEach === undefined) {
|
||||||
NodeList.prototype.forEach = Array.prototype.forEach;
|
NodeList.prototype.forEach = Array.prototype.forEach;
|
||||||
}
|
}
|
||||||
@ -39,6 +39,9 @@ if (HTMLCollection.prototype.forEach === undefined) {
|
|||||||
if (FileList.prototype.forEach === undefined) {
|
if (FileList.prototype.forEach === undefined) {
|
||||||
FileList.prototype.forEach = Array.prototype.forEach;
|
FileList.prototype.forEach = Array.prototype.forEach;
|
||||||
}
|
}
|
||||||
|
if (DataTransferItemList.prototype.forEach === undefined) {
|
||||||
|
DataTransferItemList.prototype.forEach = Array.prototype.forEach;
|
||||||
|
}
|
||||||
|
|
||||||
// ↓ iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする
|
// ↓ iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user