From 0e325c2f71ad93ead451c7052a288fb89b76f23d Mon Sep 17 00:00:00 2001 From: Philip Lawrence Date: Thu, 2 Jan 2025 15:48:42 -0700 Subject: [PATCH] Check for null postData Closes #279 --- src/serviceWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serviceWorker.js b/src/serviceWorker.js index aee64c3..541b88e 100644 --- a/src/serviceWorker.js +++ b/src/serviceWorker.js @@ -105,7 +105,7 @@ chrome.webRequest.onBeforeRequest.addListener( }; // Grab any POST data that is included - if (details.method === "POST" && typeof details.requestBody !== "undefined") { + if (details.method === "POST" && typeof details.requestBody !== "undefined" && details.requestBody) { const body = details.requestBody; if(typeof body.error !== "undefined" && body.error) { data.request.postError = true;