mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
4b6baf37b8
--HG-- extra : rebase_source : 6e348fb56dfdd0cb7e6ea80a4a02464792655c71
22 lines
928 B
JavaScript
22 lines
928 B
JavaScript
/* -*- 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/. */
|
|
|
|
let 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");
|
|
}
|
|
onClearHistoryChanged();
|
|
},
|
|
|
|
onClearHistoryChanged: function () {
|
|
let downloadsPref = document.getElementById("privacy.clearOnShutdown.downloads");
|
|
let historyPref = document.getElementById("privacy.clearOnShutdown.history");
|
|
downloadsPref.value = historyPref.value;
|
|
}
|
|
});
|