mirror of
https://github.com/aunefyren/wrapperr
synced 2024-11-10 13:44:12 +00:00
bad trycatch declaration
This commit is contained in:
parent
b3213bbf5c
commit
b52cd49e48
1 changed files with 3 additions and 2 deletions
|
@ -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() + "/"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue