diff --git a/assets/sounds/metalGear.m4a b/assets/sounds/metalGear.m4a new file mode 100644 index 0000000..fb7c2e3 Binary files /dev/null and b/assets/sounds/metalGear.m4a differ diff --git a/script_background.js b/script_background.js index ad2d4a9..d7870cd 100644 --- a/script_background.js +++ b/script_background.js @@ -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;