2012-02-24 07:34:18 +04:00
|
|
|
/* 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/. */
|
|
|
|
|
2013-06-29 07:25:08 +04:00
|
|
|
"use strict";
|
2012-02-24 07:34:18 +04:00
|
|
|
|
2021-03-25 20:28:56 +03:00
|
|
|
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
|
2019-03-26 21:34:02 +03:00
|
|
|
document.addEventListener("dialogaccept", onResetProfileAccepted);
|
2021-03-25 20:28:55 +03:00
|
|
|
document
|
|
|
|
.getElementById("refreshProfileLearnMore")
|
|
|
|
.addEventListener("click", e => {
|
|
|
|
e.preventDefault();
|
|
|
|
let retVals = window.arguments[0];
|
|
|
|
retVals.learnMore = true;
|
|
|
|
window.close();
|
|
|
|
});
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
|
|
document
|
|
|
|
.getElementById("resetProfileDialog")
|
|
|
|
.getButton("accept")
|
|
|
|
.classList.add("danger-button");
|
|
|
|
});
|
2019-03-26 21:34:02 +03:00
|
|
|
|
2012-02-24 07:34:18 +04:00
|
|
|
function onResetProfileAccepted() {
|
2012-03-10 03:21:03 +04:00
|
|
|
let retVals = window.arguments[0];
|
2012-02-24 07:34:18 +04:00
|
|
|
retVals.reset = true;
|
|
|
|
}
|