Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(fetch_config): Make sure arguments is an array
Browse files Browse the repository at this point in the history
Arguments is not an array, which caused unexpected behaviour in Safari
  • Loading branch information
jeremyvergnas committed Sep 20, 2016
1 parent 7289a58 commit a71c64d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config.js
Expand Up @@ -77,9 +77,10 @@ export class Config {
} }


let result = this.namespaces; let result = this.namespaces;
let args = Array.from(arguments);


for (let index in arguments) { for (let index in args) {
let key = arguments[index]; let key = args[index];
let value = result[key]; let value = result[key];
if (!value) { if (!value) {
return value; return value;
Expand Down

0 comments on commit a71c64d

Please sign in to comment.