Skip to content

Commit

Permalink
fix(core): drop Object.entries() for lower iOS compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkuang authored and tsangint committed Apr 10, 2020
1 parent 2fc49cf commit a3aa0b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion core/js/global/Network.js
Expand Up @@ -2,7 +2,8 @@ global.Headers = class Headers {
constructor(initValues) {
this._headers = {};
if (typeof initValues === 'object') {
Object.entries(initValues).forEach(([key, value]) => {
Object.keys(initValues).forEach((key) => {
const value = initValues[key];
if (value instanceof Array) {
value.forEach((oneData) => {
this.append(key, oneData);
Expand Down

0 comments on commit a3aa0b8

Please sign in to comment.