Skip to content

Commit

Permalink
fix(all): no-option requests
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 9, 2023
1 parent 3af63a0 commit 3364e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/injection/preinject.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function proxyFetch() {
}

// If there is an options.body, check if it's valid JSON. if so, set that up
if (options.body) {
if (options && options?.body) {
const bodyContent = isJson(options.body) ? http.Body.json(options.body) : typeof options.body === 'string' ? http.Body.text(options.body) : http.Body.bytes(options.body)
options.body = bodyContent
}
Expand Down

0 comments on commit 3364e6b

Please sign in to comment.