diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-09 19:09:22 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-09 19:14:05 +0300 |
| commit | d695dcaff91ce616549dc54c02b8bf9167f2be58 (patch) | |
| tree | 74ffd66cae8ccd38591c805d8e65a45dac733fb8 /src/components/flash/flash.js | |
| parent | 8b96ea93776fd1eb462a7c54822d4f8ad6a9e776 (diff) | |
experimental flash support through ruffle
Diffstat (limited to 'src/components/flash/flash.js')
| -rw-r--r-- | src/components/flash/flash.js | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
