From 709bc28a6c96461267c57e42e43338ec4e2d8d7e Mon Sep 17 00:00:00 2001 From: rebloor Date: Mon, 2 Oct 2023 13:46:01 +1300 Subject: [PATCH] Reverse var to let change (#541) * Reverse var to let change * Review feedback Co-authored-by: Rob Wu --------- Co-authored-by: Rob Wu --- root-cert-stats/background.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/root-cert-stats/background.js b/root-cert-stats/background.js index 272feda..24edf50 100644 --- a/root-cert-stats/background.js +++ b/root-cert-stats/background.js @@ -1,6 +1,9 @@ "use strict"; -let rootCertStats = {}; +// Note: declared with "var" because popup.js references this global variable. +// If this were to be declared with "const" or "let", then the variable would +// still be available to this file, but not to popup.js. +var rootCertStats = {}; /* On an onHeadersReceived event, if there was a successful TLS connection