mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Compress audio and clean links
This commit is contained in:
parent
0b64083543
commit
b7c02321fa
5 changed files with 6 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -93,37 +93,22 @@ export function langLink(lang, isAdmin) {
|
|||
* @param {string} path
|
||||
* @returns {string}
|
||||
*/
|
||||
export function staticPrefix(path) {
|
||||
export function staticLink(path) {
|
||||
return VERSION_PREFIX + 'static/' + path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} fileName
|
||||
* @returns {string}
|
||||
*/
|
||||
export function sound(fileName) {
|
||||
return staticPrefix('sounds/' + fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
export function notificationMailIcon() {
|
||||
return staticPrefix('css/images/icon-message-notification.png');
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
export function openPgpJs() {
|
||||
return staticPrefix('js/min/openpgp.min.js');
|
||||
return staticLink('js/min/openpgp.min.js');
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
export function openPgpWorkerJs() {
|
||||
return staticPrefix('js/min/openpgp.worker.min.js');
|
||||
return staticLink('js/min/openpgp.worker.min.js');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue