GooseMod v5.3.1: Fix easter egg's audio

pull/10/head
Oj18 3 years ago
parent 81fa355025
commit 46200e86db

@ -1,5 +1,11 @@
# GooseMod Changelog
## v5.3.1 [2020-12-04]
- ### Fixes
- Fixed easter egg's audio not playing correctly
## v5.3.0 [2020-12-04]
- ### Features

@ -99,7 +99,7 @@ const init = async function () {
this.disabledModules = {};
this.lastVersion = localStorage.getItem('goosemodLastVersion');
this.version = '5.3.0';
this.version = '5.3.1';
this.versionHash = '<hash>'; // Hash of built final js file is inserted here via build script
fetch('https://goosemod-api.netlify.app/injectVersion.json').then((x) => x.json().then((latestInjectVersionInfo) => {

@ -50,10 +50,13 @@ export default {
goosemodScope.showToast(e.message);
if (e.audio) {
const a = new Audio(e.audio);
a.play();
const a = new Audio();
a.src = e.audio;
a.oncanplaythrough = () => {
a.play();
};
a.onended = () => {
a.remove();
};

Loading…
Cancel
Save