[Pale-Moon] Issue MoonchildProductions/UXP#516 - Remove named function syntax from palemoon/components/downloads.

This commit is contained in:
athenian200 2020-02-06 06:47:04 -06:00 • committed by Roy Tam
commit dd6ed2537f
8 changed files with 162 additions and 162 deletions

View file

@ -5,7 +5,7 @@
Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
var ContentAreaDownloadsView = {
init: function CADV_init() {
init: function () {
let view = new DownloadsPlacesView(document.getElementById("downloadsRichListBox"));
// Do not display the Places downloads in private windows
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {