1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-14 18:45:06 +00:00

Update blocked page with command line to unblock

This commit is contained in:
Cadence Ember
2020-06-12 04:09:28 +12:00
parent 09a747e315
commit 78a41aada9
7 changed files with 317 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
const data = document.getElementById("data")
const username = data.getAttribute("data-username")
const source = new EventSource(`/api/user_available_stream/v1/${username}`)
source.addEventListener("open", () => {
console.log("Connected to profile waiter stream")
})
source.addEventListener("profile_available", () => {
window.location.reload()
})