diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-28 16:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-28 16:18:55 +0200 |
commit | 7e4df220c996464931c2b48a380c4a0092f50a0b (patch) | |
tree | 0df8ae282e0c5696dd184ee24dfa36ab67bf5734 /application | |
parent | d295225c19e47c235bf6a0d12c1bcad82fbe6ba9 (diff) | |
parent | 3f6cb54b54fd5d6d20882b27742ea72286d90104 (diff) | |
download | uxp-7e4df220c996464931c2b48a380c4a0092f50a0b.tar.gz |
Merge pull request #279 from janekptacijarabaci/pm_devtools_storage_style-clean_up_1
[PALEMOON] [DevTools] Storage inspector throws an error when url changes
Diffstat (limited to 'application')
-rw-r--r-- | application/palemoon/base/content/newtab/grid.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/base/content/newtab/grid.js b/application/palemoon/base/content/newtab/grid.js index 46e0b804bf..a614d03968 100644 --- a/application/palemoon/base/content/newtab/grid.js +++ b/application/palemoon/base/content/newtab/grid.js @@ -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; |