Skip to content

`UB.xhr.defaults` property added

Pavlo Mashliakovskiy requested to merge feature/ub_xhr_defaults into master

UB.xhr.defaults property added - direct access to the default HTTP parameters for xhr. Can be used, for example, to change http request timeout globally:

const UB = require('@unitybase/ub-pub')
UB.xhr.defaults.timeout = 300000 // set all ajax requests timeout to 5 minutes

Merge request reports

Loading