diff --git a/public/home.js b/public/home.js
index d1371d2..807c5fd 100644
--- a/public/home.js
+++ b/public/home.js
@@ -10,6 +10,12 @@ updateFavorites();
updatePaydirt();
updateOffense();
+window.addEventListener("pageshow", e => {
+ if (e.persisted) {
+ updateFavorites();
+ }
+})
+
async function updateOffense() {
if (!verifyLogin()) return;
diff --git a/public/player.html b/public/player.html
index 67056b1..a2d94f7 100644
--- a/public/player.html
+++ b/public/player.html
@@ -36,7 +36,7 @@
- Return to Player Search
+ Back
diff --git a/public/player.js b/public/player.js
index 4d3f678..3123b8d 100644
--- a/public/player.js
+++ b/public/player.js
@@ -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();
}
diff --git a/server.js b/server.js
index 7503b30..1179898 100644
--- a/server.js
+++ b/server.js
@@ -194,7 +194,7 @@ app.post("/getHighestOffense", authenticate, async (req, res) => {
const result = await pool.request()
.input("amount", sql.Int, amount)
.query(`
-SELECT TOP (@amount) Player.[Position], Player.PlayerName, Player.Team,
+SELECT TOP (@amount) Player.PlayerID, Player.[Position], Player.PlayerName, Player.Team,
SUM(total_yards) AS TotalYards,
SUM(passing_yards) AS PassingYards,
SUM(rushing_yards) AS RushingYards,
@@ -256,7 +256,7 @@ app.post("/getHighestPaydirt", authenticate, async (req, res) => {
const result = await pool.request()
.input("amount", sql.Int, amount)
.query(`
-SELECT TOP (@amount) Player.[Position], Player.PlayerName, Player.Team,
+SELECT TOP (@amount) Player.PlayerID, Player.[Position], Player.PlayerName, Player.Team,
SUM(total_yards) AS TotalYards,
SUM(passing_yards) AS PassingYards,
SUM(rushing_yards) AS RushingYards,