Skip to content

Commit

Permalink
[WFX-516] Fix permissions.default.image toggle in about:prefs. (Brows…
Browse files Browse the repository at this point in the history
  • Loading branch information
adamp01 authored Oct 17, 2022
1 parent 0411bf8 commit b709560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waterfox/browser/components/preferences/content/privacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const gPrivacyPaneOverlay = {
loadImagesReadPref() {
let enabledPref = Preferences.get("permissions.default.image");
let liaCheckbox = document.getElementById("loadImages");
if (enabledPref.value) {
if (enabledPref.value === 1) {
liaCheckbox.checked = true;
} else {
liaCheckbox.checked = false;
}
},

syncToLoadImagesPref() {
let value = document.getElementById("loadImages").checked ? 1 : 0;
let value = document.getElementById("loadImages").checked ? 1 : 2;
Services.prefs.setIntPref("permissions.default.image", value);
},
};

0 comments on commit b709560

Please sign in to comment.