mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
use defaults
again
deep is no longer necessary with the `headers` change
This commit is contained in:
parent
fa2c326955
commit
4dc85b1bc4
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
var defaults = require('lodash.defaults');
|
||||
var defaultsDeep = require('lodash.defaultsdeep');
|
||||
var xhr = require('xhr');
|
||||
|
||||
var jar = require('./jar');
|
||||
|
@ -16,7 +15,7 @@ var urlParams = require('./url-params');
|
|||
*/
|
||||
|
||||
module.exports = function (opts, callback) {
|
||||
defaultsDeep(opts, {
|
||||
defaults(opts, {
|
||||
host: process.env.API_HOST,
|
||||
headers: {},
|
||||
responseType: 'json',
|
||||
|
|
Loading…
Reference in a new issue