Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sounds): fix sounds path #1148

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions components/modalDialogs/Filters/SoundFilters.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { mapGetters } from 'vuex';

const eidolon = '/audio/eidolon.mp3';

export default {
name: 'SoundOptionsTab',
data() {
Expand Down Expand Up @@ -32,6 +34,11 @@ export default {
},
},
render() {
const testAudio = async () => {
const audio = new Audio(eidolon);
audio.volume = 1;
await audio.play();
};
return (
<b-tab title="Sound Filters">
<div id="soundsTabBody">
Expand All @@ -48,6 +55,9 @@ export default {
class="settings-group"
></b-form-checkbox-group>
</b-form-group>
<b-btn variant={'outline-warn'} onClick={testAudio} style={{ borderColor: 'orange' }}>
Test Audio
</b-btn>
</div>
</div>
</b-tab>
Expand Down
4 changes: 2 additions & 2 deletions services/Notifier.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue';

const drum = '/static/audio/drum.mp3';
const eidolon = '/static/audio/eidolon.mp3';
const drum = '/audio/drum.mp3';
const eidolon = '/audio/eidolon.mp3';
const wfcdLogoUrl = 'https://warframestat.us/wfcd_logo_color.png';

const defaultNotificationBody = {
Expand Down
Loading