No longer need to put ruffle stuff in source tree. Made ruffle not use
polyfills also.
This commit is contained in:
parent
d695dcaff9
commit
2f549774ab
9 changed files with 633 additions and 214 deletions
|
@ -1,14 +1,15 @@
|
|||
import RuffleService from '../../services/ruffle_service/ruffle_service.js'
|
||||
|
||||
const Flash = {
|
||||
props: [
|
||||
'src'
|
||||
],
|
||||
created: function () {
|
||||
props: [ 'src' ],
|
||||
created () {
|
||||
this.$nextTick(function () {
|
||||
const ruffle = window.RufflePlayer.newest()
|
||||
const player = ruffle.createPlayer()
|
||||
const container = this.$refs.cunt
|
||||
container.appendChild(player)
|
||||
player.load(this.src)
|
||||
RuffleService.getRuffle().then((ruffle) => {
|
||||
const player = ruffle.newest().createPlayer()
|
||||
const container = this.$refs.cunt
|
||||
container.appendChild(player)
|
||||
player.load(this.src)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue