aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-14 10:14:37 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-14 10:14:37 +0100
commitf3554804bfe5bf88984bce925470934429567516 (patch)
treed2e721cf684a9bfa8773f2b43168484f70634b5a
parent90b6afe06bacd5377c638c89045801296d69ec44 (diff)
downloadvolse-hubzilla-f3554804bfe5bf88984bce925470934429567516.tar.gz
volse-hubzilla-f3554804bfe5bf88984bce925470934429567516.tar.bz2
volse-hubzilla-f3554804bfe5bf88984bce925470934429567516.zip
only load new content onpopstate if the mid has actually changed
-rw-r--r--view/tpl/notifications_widget.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 98047f1d9..bc7f80906 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -24,7 +24,7 @@
});
window.onpopstate = function(e) {
- if(e.state !== null)
+ if(e.state !== null && e.state.b64mid !== bParam_mid)
getData(e.state.b64mid, '');
};
});