Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
always reset resources blocked on before navigation
Browse files Browse the repository at this point in the history
-
addresses #42 (review)
  • Loading branch information
cezaraugusto committed Jul 4, 2018
1 parent 52bd2ce commit e5aa26a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/background/reducers/shieldsPanelReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function shieldsPanelReducer (state: State = { tabs: {}, windows:
{
if (action.isMainFrame) {
state = shieldsPanelState.resetBlockingStats(state, action.tabId)
state = shieldsPanelState.resetBlockingResources(state, action.tabId)
state = shieldsPanelState.resetNoScriptInfo(state, action.tabId, new window.URL(action.url).origin)
}
break
Expand Down
4 changes: 4 additions & 0 deletions app/types/state/shieldsPannelState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export interface ResetBlockingStats {
(state: State, tabId: number): State
}

export interface ResetBlockingResources {
(state: State, tabId: number): State
}

export interface ChangeNoScriptSettings {
(state: State, tabId: number, origin: string): State
}
Expand Down

0 comments on commit e5aa26a

Please sign in to comment.