aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-12-17 21:08:20 +0000
committerMario <mario@mariovavti.com>2021-12-17 21:08:20 +0000
commit565602538c28b7fd2e172b4ea6fdc0c907202842 (patch)
treeca81290f25c0ed9664398127cbb84fd4b6c45d1a
parent5ab90f77915f8c2f6ccd1342e524703e5753bf2c (diff)
downloadvolse-hubzilla-565602538c28b7fd2e172b4ea6fdc0c907202842.tar.gz
volse-hubzilla-565602538c28b7fd2e172b4ea6fdc0c907202842.tar.bz2
volse-hubzilla-565602538c28b7fd2e172b4ea6fdc0c907202842.zip
main.js simplify notify_id checks
-rw-r--r--Zotlabs/Lib/ZotURL.php2
-rw-r--r--view/js/main.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Lib/ZotURL.php b/Zotlabs/Lib/ZotURL.php
index 6bb01fd7a..db0071f72 100644
--- a/Zotlabs/Lib/ZotURL.php
+++ b/Zotlabs/Lib/ZotURL.php
@@ -87,4 +87,4 @@ class ZotURL {
return ids_to_array($r,'hubloc_url');
}
-} \ No newline at end of file
+}
diff --git a/view/js/main.js b/view/js/main.js
index f4f641e33..f7709f9d1 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -178,7 +178,7 @@ $(document).ready(function() {
path = 'hq';
}
- if(notify_id != null) {
+ if(notify_id) {
$.ajax({
type: 'post',
url: 'notify',
@@ -999,7 +999,7 @@ function liveUpdate(notify_id) {
// else data was valid - reset the recursion counter
liveRecurse = 0;
- if(typeof notify_id !== 'undefined' && notify_id !== 'undefined') {
+ if(notify_id) {
$.post(
"notify",
{