From 313633d1b84efa6d171c69cae0297f24f8f2931f Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 26 Sep 2022 16:26:32 +1000 Subject: minor camelcase renaming --- main_background.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main_background.js') 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); -- cgit v1.2.3