[PALEMOON] [DevTools] Storage inspector throws an error when url changes

Issue #102
This commit is contained in:
janekptacijarabaci 2018-04-28 12:29:07 +02:00 committed by Roy Tam
commit 8fb86c0396

View file

@ -59,8 +59,13 @@ var gGrid = {
* Refreshes the grid and re-creates all sites.
*/
refresh: function Grid_refresh() {
let cells = this.cells;
if (!cells) {
return;
}
// Remove all sites.
this.cells.forEach(function (cell) {
cells.forEach(function (cell) {
let node = cell.node;
let child = node.firstElementChild;