aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-17 21:42:24 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-17 21:42:24 +0100
commitcc1e1a525f2c928590d1da6e775dc29dddc2166d (patch)
tree52113d0802651208ca56e4380059a2c0ec8e7dd7 /view/js
parentb1b1e0eba4f1e698c5f0f4f14b0527741e5b9ffb (diff)
downloadvolse-hubzilla-cc1e1a525f2c928590d1da6e775dc29dddc2166d.tar.gz
volse-hubzilla-cc1e1a525f2c928590d1da6e775dc29dddc2166d.tar.bz2
volse-hubzilla-cc1e1a525f2c928590d1da6e775dc29dddc2166d.zip
possible fix for #1326
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 017d39353..ee11ab1c6 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -468,6 +468,9 @@ function notificationsUpdate(cached_data) {
$.get(pingCmd,function(data) {
// Put the object into storage
+ if(! data)
+ return;
+
sessionStorage.setItem('notifications_cache', JSON.stringify(data));
var fnotifs = [];