Use "sonar" sound for notifications
This commit is contained in:
parent
a8b1fbd512
commit
f9defeed9f
3 changed files with 1 additions and 1 deletions
BIN
assets/audio/sonar.mp3
Normal file
BIN
assets/audio/sonar.mp3
Normal file
Binary file not shown.
BIN
assets/audio/sonar.ogg
Normal file
BIN
assets/audio/sonar.ogg
Normal file
Binary file not shown.
|
@ -881,7 +881,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
|
|
||||||
if ($scope.soundnotification) {
|
if ($scope.soundnotification) {
|
||||||
// TODO fill in a sound file
|
// TODO fill in a sound file
|
||||||
var audioFile = "assets/rickroll";
|
var audioFile = "assets/audio/sonar";
|
||||||
var soundHTML = '<audio autoplay="autoplay"><source src="' + audioFile + '.ogg" type="audio/ogg" /><source src="' + audioFile + '.mp3" type="audio/mpeg" /></audio>';
|
var soundHTML = '<audio autoplay="autoplay"><source src="' + audioFile + '.ogg" type="audio/ogg" /><source src="' + audioFile + '.mp3" type="audio/mpeg" /></audio>';
|
||||||
document.getElementById("soundNotification").innerHTML = soundHTML;
|
document.getElementById("soundNotification").innerHTML = soundHTML;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue