Skip to content

Commit

Permalink
Fixing "count" variable definition before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jrie committed Sep 1, 2019
1 parent a5c71ed commit 4767268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 4767268

Please sign in to comment.