diff --git a/Gruntfile.js b/Gruntfile.js index 8eb6f81d7..e15177541 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -121,7 +121,6 @@ module.exports = function(grunt) { '!js/register.js' ], res: [ - 'audio/**', 'images/**/*', 'fonts/*', ] diff --git a/audio/NewMessage.mp3 b/audio/NewMessage.mp3 deleted file mode 100644 index 93beaf7a3..000000000 Binary files a/audio/NewMessage.mp3 and /dev/null differ diff --git a/js/notifications.js b/js/notifications.js index 5a6f30e27..fb3c76f6a 100644 --- a/js/notifications.js +++ b/js/notifications.js @@ -14,7 +14,6 @@ }; let isEnabled = false; - var sound = new Audio('audio/NewMessage.mp3'); Whisper.Notifications = new (Backbone.Collection.extend({ initialize: function() { @@ -48,11 +47,6 @@ return; } - var audioNotification = storage.get('audio-notification') || false; - if (audioNotification) { - sound.play(); - } - var setting = storage.get('notification-setting') || 'message'; if (setting === SETTINGS.OFF) { return; diff --git a/package.json b/package.json index e425bf91d..cb307fb05 100644 --- a/package.json +++ b/package.json @@ -194,7 +194,6 @@ "app/*", "preload.js", "main.js", - "audio/**", "images/**", "fonts/*", "build/assets",