forked from srxl/akkoma-fe
Make sure options exists every time on fetch()
This commit is contained in:
parent
522110c0bc
commit
2b0811dddc
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ import 'whatwg-fetch'
|
|||
const oldfetch = window.fetch
|
||||
|
||||
let fetch = (url, options) => {
|
||||
options = options || {}
|
||||
const baseUrl = ''
|
||||
const fullUrl = baseUrl + url
|
||||
options.credentials = 'same-origin'
|
||||
|
|
Loading…
Reference in a new issue