Changed ifelse to respect linked mode

This commit is contained in:
Aune 2023-01-30 14:12:22 +01:00 committed by GitHub
parent f3e6195739
commit 63356d14e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,12 +348,6 @@ function get_wrapper_version(link_mode, hash) {
console.log("URL: " + api_url)
}
// If link mode, call the API and return form here
if(link_mode) {
wrapped_link_actions(hash);
return;
}
// Change search function to use Plex search instead
if(!result.plex_auth) {
wrapperr_search_function();
@ -373,6 +367,11 @@ function get_wrapper_version(link_mode, hash) {
document.getElementById('loading').style.display = "none";
},1000);
} else if(!result.error && link_mode) {
console.log("Getting link page...");
wrapped_link_actions(hash);
}
}