diff options
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 |
