From d695dcaff91ce616549dc54c02b8bf9167f2be58 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 9 Apr 2021 19:09:22 +0300 Subject: experimental flash support through ruffle --- src/components/flash/flash.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/components/flash/flash.js (limited to 'src/components/flash/flash.js') diff --git a/src/components/flash/flash.js b/src/components/flash/flash.js new file mode 100644 index 00000000..f768ead8 --- /dev/null +++ b/src/components/flash/flash.js @@ -0,0 +1,16 @@ +const Flash = { + props: [ + 'src' + ], + created: function () { + this.$nextTick(function () { + const ruffle = window.RufflePlayer.newest() + const player = ruffle.createPlayer() + const container = this.$refs.cunt + container.appendChild(player) + player.load(this.src) + }) + } +} + +export default Flash -- cgit v1.2.3-70-g09d2