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:
@@ -7,4 +7,8 @@ export default class extends Controller {
|
||||
connect() {
|
||||
post(this.urlValue, { responseKind: "turbo-stream" })
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
post(this.urlValue, { responseKind: "turbo-stream" })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user