no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / toolkit / content / aboutAbout.js
blob6ee2fe96edd5430cc5cafe6d65f3227fcea886ab
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/. */
5 const { AboutPagesUtils } = ChromeUtils.importESModule(
6   "resource://gre/modules/AboutPagesUtils.sys.mjs"
7 );
9 var gContainer;
10 window.onload = function () {
11   gContainer = document.getElementById("abouts");
12   AboutPagesUtils.visibleAboutUrls.forEach(createProtocolListing);
15 function createProtocolListing(aUrl) {
16   var li = document.createElement("li");
17   var link = document.createElement("a");
18   var text = document.createTextNode(aUrl);
20   link.href = aUrl;
21   link.appendChild(text);
22   li.appendChild(link);
23   gContainer.appendChild(li);