/* 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/. */ "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"); });