This commit is contained in:
RochesterX
2025-11-28 11:15:58 -05:00
parent 4d5c8d743f
commit 881c057b6a
4 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,12 @@ updateFavorites();
updatePaydirt();
updateOffense();
window.addEventListener("pageshow", e => {
if (e.persisted) {
updateFavorites();
}
})
async function updateOffense() {
if (!verifyLogin()) return;

View File

@@ -36,7 +36,7 @@
<br>
<a href="#" onclick="if (history.length > 1) history.back(); else if (document.referrer) window.location.href = document.referrer; else window.location.href = '#';">Return to Player Search</a>
<a href="#" onclick="if (history.length > 1) history.back(); else if (document.referrer) window.location.href = document.referrer; else window.location.href = '#';">Back</a>
</div>
<script type="module" src="/player.js"></script>

View File

@@ -22,7 +22,7 @@ watchButton.onclick = async e => {
const [, , id] = window.location.pathname.split("/");
const resultObject = await postData("/toggleWatched", { id: id }, token);
alert(resultObject.message);
//alert(resultObject.message);
updateIsWatched();
}