Remove new message audio notification
Bye, bye, dear Ka-Klunk!
This commit is contained in:
parent
8a8972f7ac
commit
59e59fb754
4 changed files with 0 additions and 8 deletions
|
@ -121,7 +121,6 @@ module.exports = function(grunt) {
|
||||||
'!js/register.js'
|
'!js/register.js'
|
||||||
],
|
],
|
||||||
res: [
|
res: [
|
||||||
'audio/**',
|
|
||||||
'images/**/*',
|
'images/**/*',
|
||||||
'fonts/*',
|
'fonts/*',
|
||||||
]
|
]
|
||||||
|
|
Binary file not shown.
|
@ -14,7 +14,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
let isEnabled = false;
|
let isEnabled = false;
|
||||||
var sound = new Audio('audio/NewMessage.mp3');
|
|
||||||
|
|
||||||
Whisper.Notifications = new (Backbone.Collection.extend({
|
Whisper.Notifications = new (Backbone.Collection.extend({
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
|
@ -48,11 +47,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var audioNotification = storage.get('audio-notification') || false;
|
|
||||||
if (audioNotification) {
|
|
||||||
sound.play();
|
|
||||||
}
|
|
||||||
|
|
||||||
var setting = storage.get('notification-setting') || 'message';
|
var setting = storage.get('notification-setting') || 'message';
|
||||||
if (setting === SETTINGS.OFF) {
|
if (setting === SETTINGS.OFF) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -194,7 +194,6 @@
|
||||||
"app/*",
|
"app/*",
|
||||||
"preload.js",
|
"preload.js",
|
||||||
"main.js",
|
"main.js",
|
||||||
"audio/**",
|
|
||||||
"images/**",
|
"images/**",
|
||||||
"fonts/*",
|
"fonts/*",
|
||||||
"build/assets",
|
"build/assets",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue