| Index: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| index 58a3e642cdab996bb9782eb1741aa93a34e3d2c1..f2efc635a2a5654bfe6dab05715a5f9a3ce2cf5f 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| @@ -639,9 +639,10 @@ Resources.ResourcesPanel = class extends UI.PanelWithSidebar {
|
| this.visibleView = view;
|
|
|
| this._storageViewToolbar.removeToolbarItems();
|
| - var toolbarItems = view instanceof UI.SimpleView ? view.syncToolbarItems() : null;
|
| - for (var i = 0; toolbarItems && i < toolbarItems.length; ++i)
|
| + var toolbarItems = (view instanceof UI.SimpleView && view.syncToolbarItems()) || [];
|
| + for (var i = 0; i < toolbarItems.length; ++i)
|
| this._storageViewToolbar.appendToolbarItem(toolbarItems[i]);
|
| + this._storageViewToolbar.element.classList.toggle('hidden', !toolbarItems.length);
|
| }
|
|
|
| closeVisibleView() {
|
|
|