Skip to content

Commit

Permalink
Fix broken TP button (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljt authored and jonathanKingston committed Oct 9, 2017
1 parent 6c43a7c commit e50dffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/lightbeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const lightbeam = {
trackingProtection.hidden = false;
trackingProtectionDisabled.hidden = true;

const trackingProtection
const trackingProtectionState
= await browser.privacy.websites.trackingProtectionMode.get({});
let value = true;
if (trackingProtection.value !== 'always') {
if (trackingProtectionState.value !== 'always') {
value = false;
}
toggleCheckbox.checked = value;
Expand Down

0 comments on commit e50dffa

Please sign in to comment.