Send beacon request on disconnect as well

This is so we can dismiss any notifications that arrived for a bubble
while we were viewing that bubble. Otherwise, they'll stick around until
we leave the page and come back.
This commit is contained in:
Kevin McConnell
2025-01-21 14:47:56 +00:00
parent 5d5dc8fb73
commit 42fa37d347
@@ -7,4 +7,8 @@ export default class extends Controller {
connect() {
post(this.urlValue, { responseKind: "turbo-stream" })
}
disconnect() {
post(this.urlValue, { responseKind: "turbo-stream" })
}
}