NodeList doesn't have forEach in Firefox 45
This commit is contained in:
parent
b7aab8b8d2
commit
ed3b18ba8c
|
@ -1599,7 +1599,8 @@ var ZoteroPane = new function()
|
||||||
*/
|
*/
|
||||||
this.updateItemPaneButtons = function (selectedItems) {
|
this.updateItemPaneButtons = function (selectedItems) {
|
||||||
if (!selectedItems.length) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user