Bug 1608150 [wpt PR 21112] - Add missing space in `./wpt lint` command line docs...
[gecko.git] / toolkit / content / aboutAbout.js
blob013aaec744890a7e2a0e3f7319011e92bc5427f1
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.import(
6   "resource://gre/modules/AboutPagesUtils.jsm"
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);