From ed3b18ba8c62ef22e71c5c724e1d7287a812b933 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 13 Apr 2017 01:21:36 -0400 Subject: [PATCH] NodeList doesn't have forEach in Firefox 45 --- chrome/content/zotero/zoteroPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 21702afaf..daa88f029 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1599,7 +1599,8 @@ var ZoteroPane = new function() */ this.updateItemPaneButtons = function (selectedItems) { if (!selectedItems.length) { - document.querySelectorAll('.zotero-item-pane-top-buttons').forEach(x => x.hidden = true); + // TODO: Remove Array.from after Firefox 45 support is removed + Array.from(document.querySelectorAll('.zotero-item-pane-top-buttons')).forEach(x => x.hidden = true); return; }