mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
[Basilisk] Issue MoonchildProductions/UXP#516 - Remove named function syntax from basilisk/components/preferences.
This commit is contained in:
parent
1cceb703f1
commit
7f04845e74
5 changed files with 27 additions and 27 deletions
|
|
@ -232,7 +232,7 @@ var gPrivacyPane = {
|
|||
/**
|
||||
* Initialize the history mode menulist based on the privacy preferences
|
||||
*/
|
||||
initializeHistoryMode: function PPP_initializeHistoryMode()
|
||||
initializeHistoryMode: function()
|
||||
{
|
||||
let mode;
|
||||
let getVal = aPref => document.getElementById(aPref).value;
|
||||
|
|
@ -252,7 +252,7 @@ var gPrivacyPane = {
|
|||
/**
|
||||
* Update the selected pane based on the history mode menulist
|
||||
*/
|
||||
updateHistoryModePane: function PPP_updateHistoryModePane()
|
||||
updateHistoryModePane: function()
|
||||
{
|
||||
let selectedIndex = -1;
|
||||
switch (document.getElementById("historyMode").value) {
|
||||
|
|
@ -273,7 +273,7 @@ var gPrivacyPane = {
|
|||
* Update the private browsing auto-start pref and the history mode
|
||||
* micro-management prefs based on the history mode menulist
|
||||
*/
|
||||
updateHistoryModePrefs: function PPP_updateHistoryModePrefs()
|
||||
updateHistoryModePrefs: function()
|
||||
{
|
||||
let pref = document.getElementById("browser.privatebrowsing.autostart");
|
||||
switch (document.getElementById("historyMode").value) {
|
||||
|
|
@ -308,7 +308,7 @@ var gPrivacyPane = {
|
|||
* Update the privacy micro-management controls based on the
|
||||
* value of the private browsing auto-start checkbox.
|
||||
*/
|
||||
updatePrivacyMicroControls: function PPP_updatePrivacyMicroControls()
|
||||
updatePrivacyMicroControls: function()
|
||||
{
|
||||
if (document.getElementById("historyMode").value == "custom") {
|
||||
let disabled = this._autoStartPrivateBrowsing =
|
||||
|
|
@ -360,7 +360,7 @@ var gPrivacyPane = {
|
|||
/**
|
||||
* Initialize the starting state for the auto-start private browsing mode pref reverter.
|
||||
*/
|
||||
initAutoStartPrivateBrowsingReverter: function PPP_initAutoStartPrivateBrowsingReverter()
|
||||
initAutoStartPrivateBrowsingReverter: function()
|
||||
{
|
||||
let mode = document.getElementById("historyMode");
|
||||
let autoStart = document.getElementById("privateBrowsingAutoStart");
|
||||
|
|
@ -370,7 +370,7 @@ var gPrivacyPane = {
|
|||
|
||||
_lastMode: null,
|
||||
_lastCheckState: null,
|
||||
updateAutostart: function PPP_updateAutostart() {
|
||||
updateAutostart: function() {
|
||||
let mode = document.getElementById("historyMode");
|
||||
let autoStart = document.getElementById("privateBrowsingAutoStart");
|
||||
let pref = document.getElementById("browser.privatebrowsing.autostart");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue