From 3364e6b396edf31ad99dac2aba75f70fb6c1dbc9 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Mon, 9 Oct 2023 12:47:13 -0700 Subject: [PATCH] fix(all): no-option requests --- src-tauri/injection/preinject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/injection/preinject.js b/src-tauri/injection/preinject.js index 41e90f3c..9103a3c9 100644 --- a/src-tauri/injection/preinject.js +++ b/src-tauri/injection/preinject.js @@ -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 }