diff --git a/static/openInApp.js b/static/openInApp.js index 85ecac3..c4161a7 100644 --- a/static/openInApp.js +++ b/static/openInApp.js @@ -22,7 +22,7 @@ function openTweet(tweetId){ window.location.replace(url); } } else if (localStorage.getItem("frontendToggle") === "true" && localStorage.getItem("frontendUrl") !== null) { - window.location = `${frontendUrl}/i/status/${tweetId}` + window.location = `${localStorage.getItem("frontendUrl")}/i/status/${tweetId}` } else { window.location = `https://x.com/i/status/${tweetId}` }