bad trycatch declaration

This commit is contained in:
Aune 2023-01-30 14:01:49 +01:00 committed by GitHub
parent b3213bbf5c
commit b52cd49e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() + "/"
}