summaryrefslogtreecommitdiffstats
path: root/js/initialize.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/initialize.js')
-rw-r--r--js/initialize.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/initialize.js b/js/initialize.js
index 7bd7cd9..cb5d210 100644
--- a/js/initialize.js
+++ b/js/initialize.js
@@ -1,11 +1,7 @@
function getUrlParameter(sParam) {
const url_params = new URLSearchParams(window.location.search);
const found_param = url_params.get(sParam);
- if (found_param === null) {
- return ""
- } else {
- return found_param
- }
+ return found_param === null ? "" : found_param;
}
@@ -34,7 +30,6 @@ localforage.getItem("logged_in")
}
).catch(
function (err) {
- // This code runs if there were any errors
console.log(err);
}
);