mirror of
https://github.com/romancm/gamebrary
synced 2024-11-13 23:17:08 +00:00
Added easter egg when adding Mortal Kombat games
This commit is contained in:
parent
758e86818f
commit
662c9bb4ab
3 changed files with 13 additions and 0 deletions
|
@ -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
BIN
static/img/toasty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
BIN
static/sounds/toasty.mp3
Normal file
BIN
static/sounds/toasty.mp3
Normal file
Binary file not shown.
Loading…
Reference in a new issue