diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 9bb0d0bea..f80badfd0 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -118,7 +118,10 @@ - + diff --git a/src/components/flash/flash.js b/src/components/flash/flash.js index 832705a23..74ea34000 100644 --- a/src/components/flash/flash.js +++ b/src/components/flash/flash.js @@ -3,7 +3,7 @@ import { library } from '@fortawesome/fontawesome-svg-core' import { faStop } from '@fortawesome/free-solid-svg-icons' library.add( - faStop, + faStop ) const Flash = { @@ -24,7 +24,7 @@ const Flash = { player.config = { letterbox: 'on' } - const container = this.$refs.cunt + const container = this.$refs.container container.appendChild(player) player.style.width = '100%' player.style.height = '100%' diff --git a/src/components/flash/flash.vue b/src/components/flash/flash.vue index adef67ff7..fb8981e1b 100644 --- a/src/components/flash/flash.vue +++ b/src/components/flash/flash.vue @@ -2,19 +2,25 @@
@@ -24,8 +30,8 @@ @click="closePlayer" > - -
+ +
diff --git a/src/services/ruffle_service/ruffle_service.js b/src/services/ruffle_service/ruffle_service.js index 61fe1e195..7411dd962 100644 --- a/src/services/ruffle_service/ruffle_service.js +++ b/src/services/ruffle_service/ruffle_service.js @@ -2,7 +2,10 @@ const createRuffleService = () => { let ruffleInstance = null const getRuffle = () => new Promise((resolve, reject) => { - if (ruffleInstance) resolve(ruffleInstance) + if (ruffleInstance) { + resolve(ruffleInstance) + return + } // Ruffle needs these to be set before it's loaded // https://github.com/ruffle-rs/ruffle/issues/3952 window.RufflePlayer = {}