mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
load sounds from aws (#15249)
This commit is contained in:
@@ -176,7 +176,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['isUserLoggedIn', 'browserTimezoneUtcOffset', 'isUserLoaded', 'notificationsRemoved']),
|
...mapState(['isUserLoggedIn', 'browserTimezoneUtcOffset', 'isUserLoaded']),
|
||||||
...mapState({ user: 'user.data' }),
|
...mapState({ user: 'user.data' }),
|
||||||
isStaticPage () {
|
isStaticPage () {
|
||||||
return this.$route.meta.requiresLogin === false;
|
return this.$route.meta.requiresLogin === false;
|
||||||
@@ -199,7 +199,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const file = `/static/audio/${theme}/${sound}`;
|
const file = `https://habitica-assets.s3.amazonaws.com/mobileApp/sounds/${theme}/${sound}`;
|
||||||
|
|
||||||
if (this.audioSuffix === null) {
|
if (this.audioSuffix === null) {
|
||||||
this.audioSource = document.createElement('source');
|
this.audioSource = document.createElement('source');
|
||||||
|
|||||||
Reference in New Issue
Block a user