mirror of
https://github.com/aunefyren/wrapperr
synced 2025-01-10 08:38:43 +00:00
Changed ifelse to respect linked mode
This commit is contained in:
parent
f3e6195739
commit
63356d14e3
1 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue