mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
Issue #303 Part 1: Move basilisk files from /browser to /application/basilisk
This commit is contained in:
parent
a951f19dfd
commit
177b28a898
1938 changed files with 0 additions and 0 deletions
21
application/basilisk/components/preferences/sanitize.js
Normal file
21
application/basilisk/components/preferences/sanitize.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
var gSanitizeDialog = Object.freeze({
|
||||
init: function() {
|
||||
let customWidthElements = document.getElementsByAttribute("dialogWidth", "*");
|
||||
let isInSubdialog = document.documentElement.hasAttribute("subdialog");
|
||||
for (let element of customWidthElements) {
|
||||
element.style.width = element.getAttribute(isInSubdialog ? "subdialogWidth" : "dialogWidth");
|
||||
}
|
||||
this.onClearHistoryChanged();
|
||||
},
|
||||
|
||||
onClearHistoryChanged: function () {
|
||||
let downloadsPref = document.getElementById("privacy.clearOnShutdown.downloads");
|
||||
let historyPref = document.getElementById("privacy.clearOnShutdown.history");
|
||||
downloadsPref.value = historyPref.value;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue