mirror of
https://github.com/aunefyren/wrapperr
synced 2025-01-10 00:38:41 +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
|
@ -347,13 +347,7 @@ function get_wrapper_version(link_mode, hash) {
|
|||
api_url = window.location.origin + "/" + result.wrapperr_root + "/api/";
|
||||
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