From b52cd49e482dfbbe270d4972b0f63c377af42bca Mon Sep 17 00:00:00 2001 From: Aune <31650531+aunefyren@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:01:49 +0100 Subject: [PATCH] bad trycatch declaration --- web/js/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/js/index.js b/web/js/index.js index c4bb86a..b7dc782 100644 --- a/web/js/index.js +++ b/web/js/index.js @@ -380,7 +380,7 @@ function get_wrapper_version(link_mode, hash) { xhttp.withCredentials = true; // Try to guess API URL from current URL - Try { + try { var window_location_str = window.location.toString(); @@ -398,7 +398,8 @@ function get_wrapper_version(link_mode, hash) { } else { var final_url = init_url + "/" } - } Catch(e) { + + } catch(e) { console.log("Error occured while guessing API URL. Error: " + e); var final_url = window.location.toString() + "/" }