1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +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
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
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()
})