summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-28 12:29:07 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-28 12:29:07 +0200
commit6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a (patch)
treeb49cec9112c6eb9f582a925299598a4b45773568
parentc75dae3ed21bfa5a8ae46cd83d18329af5bea05a (diff)
downloadUXP-6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a.tar
UXP-6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a.tar.gz
UXP-6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a.tar.lz
UXP-6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a.tar.xz
UXP-6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a.zip
[PALEMOON] [DevTools] Storage inspector throws an error when url changes
Issue #102
-rw-r--r--application/palemoon/base/content/newtab/grid.js7
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 46e0b804b..a614d0396 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;