From 2b823728c9422f96ba7d0da896873f59641887b0 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Sat, 17 Feb 2024 01:40:03 -0800 Subject: [PATCH] Removed console logging in content script. Fixes #3 --- common.js | 2 +- content_script.js | 4 ++-- options/options.html | 8 ++++---- worker.js | 3 +++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/common.js b/common.js index da58546..9da9dce 100644 --- a/common.js +++ b/common.js @@ -287,7 +287,7 @@ export function getmessage(securityInfo) { * @returns {string} */ export function countryCode(country) { - return Array.from(country.toUpperCase(), (c) => String.fromCodePoint(c.codePointAt() + 127397)).join(""); + return Array.from(country.toUpperCase(), (c) => String.fromCodePoint(c.codePointAt() + 0x1F1A5)).join(""); } /** diff --git a/content_script.js b/content_script.js index 75a81d8..f8313fb 100644 --- a/content_script.js +++ b/content_script.js @@ -30,7 +30,7 @@ new PerformanceObserver((list, observer) => { const entries = list.getEntries(); // console.log(entries); const entry = entries.find((x) => x.name === "first-contentful-paint"); - console.log(`First Contentful Paint: ${entry ? `${entry.startTime} ms` : "None"}`, entry); + // console.log(`First Contentful Paint: ${entry ? `${entry.startTime} ms` : "None"}`, entry); paint = entries; send(); @@ -40,7 +40,7 @@ new PerformanceObserver((list, observer) => { const entries = list.getEntries(); // console.log(entries); const entry = entries.at(-1); - console.log(`Largest Contentful Paint: ${entry.startTime} ms`, entry); + // console.log(`Largest Contentful Paint: ${entry.startTime} ms`, entry); lcp = entries; send(); diff --git a/options/options.html b/options/options.html index 6df917b..5e7eed1 100644 --- a/options/options.html +++ b/options/options.html @@ -164,7 +164,7 @@

Toolbar

@@ -195,7 +195,7 @@

Location

Note that the databases do not have the location for all IP addresses, so select the one with the most accuracy for your locations of interest. Users with a very slow internet connection or limited memory (RAM) may want to select one of the - much smaller “Country” databases. + much smaller “Country only” databases.
None: @@ -257,7 +257,7 @@

Location

This site or product includes IP2Location LITE data available from Location
    -
  • Updated Monthly
  • +
  • Updated Bimonthly
This site or product includes IP2Location LITE data available from
{ if (retry >= 2) { @@ -97,6 +99,7 @@ function agetGeoIP(url, v, cache, retry = 0) { } console.error(error); await delay((1 << retry) * 1000); + return agetGeoIP(url, v, cache, retry + 1); }); }