diff --git a/README.md b/README.md index 663a34a..c24ad52 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ Sends a system notification via the browser. Plays a chime sound to notify the user. +By default, the selected sound file is at [`custom_nodes/ComfyUI-Notifications/web/assets/notify.mp3`](web/assets/). You can add custom sounds to this directory and change the file name in the node settings to play a different sound. + +Alternatively, you can use a URL to an audio file. Simply enter the URL in the `file` field. + diff --git a/web/util.js b/web/util.js index ff223ae..673edd1 100644 --- a/web/util.js +++ b/web/util.js @@ -29,7 +29,7 @@ export const playSound = (file, volume) => { if (!file) { file = 'notify.mp3' } - if (!file.startsWith('http')) { + if (!(file.startsWith('http') || file.startsWith('https'))) { if (!file.includes('/')) { file = 'assets/' + file }