summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/newtab/grid.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-28 17:57:18 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-28 17:57:18 +0200
commitf69729b0aa1d8cd1964994919ab30ce7c7d9f410 (patch)
treed877e04983b628a9e45271615fc9486712e4a404 /application/palemoon/base/content/newtab/grid.js
parentb53db93006f732fb2e140137e4713dedca1700d9 (diff)
parentde057c7a5635e65f45ce47162d226b1ddf24e8aa (diff)
downloadUXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.gz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.lz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.xz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'application/palemoon/base/content/newtab/grid.js')
-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;