tabletop-companion/app/javascript/controllers/notifications_controller.js

10 lines
175 B
JavaScript

import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
connect() {
setTimeout(() => {
this.element.remove()
}, 5000)
}
}