You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I download the "Public static scoreboard ZIP", it includes the favourite hearts. It appears that a cookie is used to store which teams are favourited, and the pinned teams are rendered client-side on page load. However, when opening the scoreboard's index.html as file in my browser, it does not work.
Open file:///home/[user]/Downloads/scoreboard/index.html in your browser
Click a heart
Expected behaviour
The team is favourited and pinned to the top.
Actual behaviour
No visual change, and an error in the console:
Any other information that you want to share?
Since everything is managed on the client and there is no server involved anymore, I expect that it is not necessary to make an XMLHttpRequest. Instead, the page should simply window.reload() after updating the cookie.
Note that this does work when serving the unzipped scoreboard folder using python3 -m http.server and accessing http://localhost:8000.
I'm also wondering why cookies are used instead of the browser's localStorage.
The text was updated successfully, but these errors were encountered:
Description of the problem
When I download the "Public static scoreboard ZIP", it includes the favourite hearts. It appears that a cookie is used to store which teams are favourited, and the pinned teams are rendered client-side on page load. However, when opening the scoreboard's
index.html
as file in my browser, it does not work.Your environment
DemoWeb
Steps to reproduce
file:///home/[user]/Downloads/scoreboard/index.html
in your browserExpected behaviour
The team is favourited and pinned to the top.
Actual behaviour
No visual change, and an error in the console:
Any other information that you want to share?
Since everything is managed on the client and there is no server involved anymore, I expect that it is not necessary to make an XMLHttpRequest. Instead, the page should simply
window.reload()
after updating the cookie.Note that this does work when serving the unzipped scoreboard folder using
python3 -m http.server
and accessinghttp://localhost:8000
.I'm also wondering why cookies are used instead of the browser's
localStorage
.The text was updated successfully, but these errors were encountered: