File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,8 +234,7 @@ document
234234 chrome . action . setBadgeText ( { text : '' } ) ;
235235
236236 // Randomly pick a new icon
237- let index = lastIconIndex ;
238- index = Math . floor ( Math . random ( ) * EMOJI . length ) ;
237+ let index = Math . floor ( Math . random ( ) * EMOJI . length ) ;
239238 if ( index === lastIconIndex ) {
240239 // Dupe detected! Increment the index & modulo to make sure we don't go out of bounds
241240 index = ( index + 1 ) % EMOJI . length ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ function stringToUrl(input) {
5353}
5454
5555async function deleteDomainCookies ( domain ) {
56- let cookiesDeleted = 0 ;
56+ let cookiesDeleted ;
5757 try {
5858 const cookies = await chrome . cookies . getAll ( { domain } ) ;
5959
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ chrome.commands.onCommand.addListener(async (command) => {
1111 return tab . active ;
1212 } ) ;
1313 const lastTab = tabs . length - 1 ;
14- let newIndex = - 1 ;
14+ let newIndex ;
1515 if ( command === 'flip-tabs-forward' ) {
1616 newIndex = activeIndex === lastTab ? 0 : activeIndex + 1 ;
1717 }
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ function loadSavedState(callback) {
3838 * @param {string } newState New {StateEnum} to use.
3939 */
4040function setState ( newState ) {
41- let imagePrefix = 'night' ;
42- let title = '' ;
41+ let imagePrefix ;
42+ let title ;
4343
4444 switch ( newState ) {
4545 case StateEnum . DISABLED :
You can’t perform that action at this time.
0 commit comments