Compress audio and clean links

This commit is contained in:
djmaze 2021-03-16 17:07:29 +01:00
parent 0b64083543
commit b7c02321fa
5 changed files with 6 additions and 21 deletions

View file

@ -108,7 +108,7 @@ export const SMAudio = new class {
if ('running' == audioCtx.state && (this.supportedMp3 || this.supportedOgg)) {
if (!notificator) {
notificator = createNewObject();
notificator.src = Links.sound('new-mail.'+ (this.supportedMp3 ? 'mp3' : 'ogg'));
notificator.src = Links.staticLink('sounds/new-mail.'+ (this.supportedMp3 ? 'mp3' : 'ogg'));
}
if (notificator) {
notificator.volume = silent ? 0.01 : 1;