Source code
Revision control
Copy as Markdown
Other Tools
/* 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,
"use strict";
let params = window.arguments[0];
document.l10n.setAttributes(
document.getElementById("infoTitle"),
"widget-studio-delete-confirm-title",
{ name: params.name }
);
document.addEventListener("dialogaccept", () => {
params.accepted = true;
});
document.addEventListener("DOMContentLoaded", () => {
document
.getElementById("deleteWidgetDialog")
.getButton("accept")
.classList.add("danger-button");
});