aboutsummaryrefslogtreecommitdiff
path: root/src/components/flash/flash.js
blob: e707a4c4cfeb98d14f881ce3bac163e929a87bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import RuffleService from '../../services/ruffle_service/ruffle_service.js'

const Flash = {
  props: [ 'src' ],
  created () {
    this.$nextTick(function () {
      RuffleService.getRuffle().then((ruffle) => {
        const player = ruffle.newest().createPlayer()
        const container = this.$refs.cunt
        container.appendChild(player)
        player.load(this.src)
      })
    })
  }
}

export default Flash