From 4767268638914c32763e409f95288761bfc724a0 Mon Sep 17 00:00:00 2001 From: "jan@dwrox.net" Date: Sun, 1 Sep 2019 08:47:37 +0200 Subject: [PATCH] Fixing "count" variable definition before usage --- cookies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookies.js b/cookies.js index 0a0fca2..619567c 100644 --- a/cookies.js +++ b/cookies.js @@ -1080,6 +1080,7 @@ async function clearCookiesOnUpdate (tabId, changeInfo, currentTab) { let titleString = '::::::::::::::::::: ' + getMsg('IconDisplayLog') + ' :::::::::::::::::::' + let count = 0 if (logData[contextName] !== undefined && logData[contextName][currentTab.windowId] !== undefined && logData[contextName][currentTab.windowId][currentTab.id] !== undefined) { let statuses = [getMsg('GlobalFlagState'), getMsg('AutoFlagState'), getMsg('PermittedState'), getMsg('AllowedState'), getMsg('DeletedStateMsg')] let hasTitleChange = false @@ -1120,7 +1121,6 @@ async function clearCookiesOnUpdate (tabId, changeInfo, currentTab) { setBrowserActionIconFirefox(contextName, tabDomain, currentTab.id) } - let count = 0 for (let msg of logData[contextName][currentTab.windowId][currentTab.id]) { if (msg.toLowerCase().indexOf(getMsg('DeletedStateMsg').toLowerCase()) !== -1) ++count }