From e2d77be123422babedb1a8f7f7d0869d2f0aab8c Mon Sep 17 00:00:00 2001 From: cilame Date: Sat, 16 Oct 2021 18:18:25 +0800 Subject: [PATCH] add --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index b272811..9333407 100644 --- a/background.js +++ b/background.js @@ -43,7 +43,7 @@ chrome.debugger.onEvent.addListener(function (source, method, params){ } sendCommand("Fetch.getResponseBody", { requestId: params.requestId }, source, function(result){ if (result.body !== undefined){ - var rescode = atob(result.body) // 收到的也是 base64 的代码,base64 解一下就是原始代码,对这个代码处理一下后续再传入 body + var rescode = atob(result.body) // 收到的是 base64 的代码,base64 解一下就是原始代码,对这个代码处理一下后续再传入 body console.log(rescode) } sendCommand("Fetch.fulfillRequest", {