Skip to content

Commit

Permalink
fix changing global defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Dec 5, 2019
1 parent ef7cde4 commit d55fc10
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/defaults.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
let defaults = getDefaults();

function getDefaults() {
return {
baseUrl: null,
Expand All @@ -22,11 +20,11 @@ function getDefaults() {
}

function changeDefaults(newDefaults) {
defaults = newDefaults;
module.exports.defaults = newDefaults;
}

module.exports = {
defaults,
defaults: getDefaults(),
getDefaults,
changeDefaults
};

0 comments on commit d55fc10

Please sign in to comment.