downloadsCommands.js (676B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /* import-globals-from allDownloadsView.js */ 6 /* import-globals-from /toolkit/content/globalOverlay.js */ 7 8 document.addEventListener("DOMContentLoaded", function () { 9 let downloadCommands = document.getElementById("downloadCommands"); 10 downloadCommands.addEventListener("commandupdate", function () { 11 goUpdateDownloadCommands(); 12 }); 13 downloadCommands.addEventListener("command", function (event) { 14 let { id } = event.target; 15 goDoCommand(id); 16 }); 17 });