mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 20:20:34 +09:00
11 lines
205 B
JavaScript
11 lines
205 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
static values = { "url": String }
|
|
|
|
play() {
|
|
const sound = new Audio(this.urlValue)
|
|
sound.play()
|
|
}
|
|
}
|