diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-11 23:03:03 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-11 23:03:03 +0300 |
| commit | 2f549774ab6f7dae08ad1cc5977cbf74b86e6d78 (patch) | |
| tree | 40727e74f95ab23225c60886899fbe0496af47b7 /src/components/flash/flash.js | |
| parent | d695dcaff91ce616549dc54c02b8bf9167f2be58 (diff) | |
No longer need to put ruffle stuff in source tree. Made ruffle not use
polyfills also.
Diffstat (limited to 'src/components/flash/flash.js')
| -rw-r--r-- | src/components/flash/flash.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/components/flash/flash.js b/src/components/flash/flash.js index f768ead8..e707a4c4 100644 --- a/src/components/flash/flash.js +++ b/src/components/flash/flash.js @@ -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) + }) }) } } |
