Added easter egg when adding Mortal Kombat games

This commit is contained in:
Roman Cervantes 2019-04-19 23:14:07 -07:00
parent 758e86818f
commit 662c9bb4ab
3 changed files with 13 additions and 0 deletions

View file

@ -103,6 +103,19 @@ export default {
db.collection('lists').doc(this.user.uid).set(this.gameLists, { merge: true })
.then(() => {
if (this.game.name.toLowerCase().includes('mortal kombat')) {
const toastySound = new Audio('http://localhost:4000/static/sounds/toasty.mp3');
toastySound.play();
this.$bus.$emit('TOAST', {
message: 'Dan Forden',
type: 'warning',
imageUrl: '/static/img/toasty.png',
});
return;
}
this.$bus.$emit('TOAST', {
message: `Added ${this.game.name} to list ${this.list.name}`,
imageUrl: this.coverUrl,

BIN
static/img/toasty.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
static/sounds/toasty.mp3 Normal file

Binary file not shown.