Update docs with info about custom sounds.

This commit is contained in:
Royce Schultz
2025-07-07 17:30:52 -06:00
parent c587ede2dc
commit 99d3e2d95f
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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.
<img src="assets/play_sound_node.jpg" width="400"/>
+1 -1
View File
@@ -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
}