summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-28 16:18:55 +0200
committerGitHub <noreply@github.com>2018-04-28 16:18:55 +0200
commitadb23ed9481102c80d9bd63f59d4011c64ed9a39 (patch)
tree0df8ae282e0c5696dd184ee24dfa36ab67bf5734 /application/palemoon/base
parent6607336b5c53e41b5195b231367844579ec24fa3 (diff)
parent6bdb9d25d62fc0cfb265ebfebdfdc3362cf4f49a (diff)
downloadUXP-adb23ed9481102c80d9bd63f59d4011c64ed9a39.tar
UXP-adb23ed9481102c80d9bd63f59d4011c64ed9a39.tar.gz
UXP-adb23ed9481102c80d9bd63f59d4011c64ed9a39.tar.lz
UXP-adb23ed9481102c80d9bd63f59d4011c64ed9a39.tar.xz
UXP-adb23ed9481102c80d9bd63f59d4011c64ed9a39.zip
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/palemoon/base')
-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;