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

10 lines
175 B
JavaScript
Raw Normal View History

2024-06-14 07:39:38 +00:00
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
connect() {
setTimeout(() => {
this.element.remove()
}, 5000)
}
}