No longer need to put ruffle stuff in source tree. Made ruffle not use

polyfills also.
This commit is contained in:
Henry Jameson 2021-04-11 23:03:03 +03:00
parent d695dcaff9
commit 2f549774ab
9 changed files with 633 additions and 214 deletions

View file

@ -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)
})
})
}
}