diff options
author | rstular <rok@stular.eu> | 2020-05-14 02:39:45 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 02:39:45 +0200 |
commit | c3b6d083be07da2831bff06496137200547fc947 (patch) | |
tree | 576605f06170b146b5652496cc41dc6b0c051020 /js/initialize.js | |
parent | Minor styling fix (diff) | |
download | beziapp-c3b6d083be07da2831bff06496137200547fc947.tar beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.gz beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.bz2 beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.lz beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.xz beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.zst beziapp-c3b6d083be07da2831bff06496137200547fc947.zip |
Diffstat (limited to '')
-rw-r--r-- | js/initialize.js | 7 |
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); } ); |