aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-26 16:26:32 +1000
committerYuchen Pei <hi@ypei.me>2022-09-26 16:26:32 +1000
commit313633d1b84efa6d171c69cae0297f24f8f2931f (patch)
tree23e578c425cf02d1685091d857f4ed41f0db1c7c
parent09e1c5c784391343524563eea5e3ad24d8d49d00 (diff)
minor camelcase renaming
-rw-r--r--main_background.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/main_background.js b/main_background.js
index 4fe55d5..c983f2f 100644
--- a/main_background.js
+++ b/main_background.js
@@ -533,8 +533,8 @@ var ResponseHandler = {
*/
async post(response) {
const { type } = response.request;
- const handle_it = type === 'script' ? handleScript : handle_html;
- return await handle_it(response, response.whitelisted);
+ const handler = type === 'script' ? handleScript : handleHtml;
+ return await handler(response, response.whitelisted);
}
}
@@ -792,9 +792,9 @@ const findLine = (finder, html) => finder.test(html) && html.substring(0, finder
/**
* Here we handle html document responses
*/
-async function handle_html(response, whitelisted) {
- let { text, request } = response;
- let { url, tabId, frameId, type } = request;
+async function handleHtml(response, whitelisted) {
+ const { text, request } = response;
+ const { url, tabId, frameId, type } = request;
if (type === 'main_frame') {
activityReports[tabId] = await createReport({ url, tabId });
updateBadge(tabId);