Skip to content

Commit

Permalink
fix site-specific fingerprinting opt-out
Browse files Browse the repository at this point in the history
fixes brave#2300
auditors: @diracdeltas
  • Loading branch information
bridiver committed Jun 25, 2016
1 parent 3e178e2 commit 3c7dfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/state/contentSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const getContentSettingsFromSiteSettings = (appState) => {
addContentSettings(contentSettings.cookies, hostPattern, '*', 'allow')
}
}
if (hostSetting.fingerprintingProtection) {
if (typeof hostSetting.fingerprintingProtection === 'boolean') {
addContentSettings(contentSettings.canvasFingerprinting, hostPattern, '*', hostSetting.fingerprintingProtection ? 'block' : 'allow')
}
if (hostSetting.adControl) {
Expand Down

0 comments on commit 3c7dfbb

Please sign in to comment.