From 63356d14e3bb23b9a0db66e26a3861d0936d25c2 Mon Sep 17 00:00:00 2001 From: Aune <31650531+aunefyren@users.noreply.github.com> Date: Mon, 30 Jan 2023 14:12:22 +0100 Subject: [PATCH] Changed ifelse to respect linked mode --- web/js/index.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/js/index.js b/web/js/index.js index 53c3dae..9d3da9d 100644 --- a/web/js/index.js +++ b/web/js/index.js @@ -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); + } }