fixed undefined reference

This commit is contained in:
MarshDeer 2024-09-07 19:43:36 -04:00
parent 5bbf9cca6d
commit 4a18adf662

View File

@ -22,7 +22,7 @@ function openTweet(tweetId){
window.location.replace(url); window.location.replace(url);
} }
} else if (localStorage.getItem("frontendToggle") === "true" && localStorage.getItem("frontendUrl") !== null) { } 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 { } else {
window.location = `https://x.com/i/status/${tweetId}` window.location = `https://x.com/i/status/${tweetId}`
} }