Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 6a9cb8a

Browse files
NejcZdovcbsclifton
authored andcommitted
Adds fingerprint and scripts to the lion badge count
Resolves #7886 Auditors: @bsclifton Test Plan: - Visit icloud.com with fingerprint enabled - badge count should be 1
1 parent 6e5e05d commit 6a9cb8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/components/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,9 @@ class Main extends ImmutableComponent {
893893
getTotalBlocks (frames) {
894894
const ads = frames.getIn(['adblock', 'blocked'])
895895
const trackers = frames.getIn(['trackingProtection', 'blocked'])
896-
const blocked = (ads ? ads.size : 0) + (trackers ? trackers.size : 0)
896+
const scripts = frames.getIn(['noScript', 'blocked'])
897+
const fingerprint = frames.getIn(['fingerprintingProtection', 'blocked'])
898+
const blocked = (ads ? ads.size : 0) + (trackers ? trackers.size : 0) + (scripts ? scripts.size : 0) + (fingerprint ? fingerprint.size : 0)
897899

898900
return (blocked.size === 0) ? false : ((blocked > 99) ? '99+' : blocked)
899901
}

0 commit comments

Comments
 (0)