1
0
mirror of https://github.com/elisspace/AskAssist.git synced 2026-08-29 15:33:47 +00:00

add git add .git add .! sound

This commit is contained in:
Jeremy Dixon
2021-01-24 10:44:17 -06:00
parent 560e47d9a7
commit d16e3daaf9
2 changed files with 4 additions and 3 deletions

BIN
assets/sounds/metalGear.m4a Normal file

Binary file not shown.

View File

@@ -31,8 +31,9 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse)=>{
let alert_manager = {
alertList: [
{name:"beep beep", file:'beep'},
{name:"softly chirp", file:'chirp'}
{name:"!!!!!", file:'metalGear.m4a'},
{name:"beep beep", file:'beep.mp3'},
{name:"softly chirp", file:'chirp.mp3'}
],
handleAlert: (options)=>{
// TERMS:
@@ -63,7 +64,7 @@ let alert_manager = {
return false
}
console.log('Playing Alert')
alert = new Audio(chrome.runtime.getURL(`./assets/sounds/${alertFile}.mp3`));
alert = new Audio(chrome.runtime.getURL(`./assets/sounds/${alertFile}`));
alert.volume = (1/5)*options["volume"];
if(currSound){currSound.pause()}
currSound = alert;