diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 12:29:07 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 12:29:07 +0200 |
commit | 3f6cb54b54fd5d6d20882b27742ea72286d90104 (patch) | |
tree | b49cec9112c6eb9f582a925299598a4b45773568 /application | |
parent | 1ec4aa39859b5c5391103141141656a66e809bcc (diff) | |
download | uxp-3f6cb54b54fd5d6d20882b27742ea72286d90104.tar.gz |
[PALEMOON] [DevTools] Storage inspector throws an error when url changes
Issue mcp-graveyard/UXP#102
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; |