frontend for xcvr appview

Audio maybe

+3
+3
src/lib/wscontext.svelte.ts
··· 20 20 active: boolean = false 21 21 nick: string = "wanderer" 22 22 handle: string = "" 23 + audio: HTMLAudioElement = new Audio('%sveltekit.assets%/notif.wav') 23 24 24 25 constructor(channelUri: string, defaultHandle: string, defaultNick: string, defaultColor: number) { 25 26 console.log(channelUri) ··· 126 127 // theoretically this could occur _after we have an orphaned signet or an orphanedmessage or both! so, 127 128 // TODO: make it work in that case 128 129 pushMessage = (message: Message) => { 130 + this.audio.currentTime = 0 131 + this.audio.play() 129 132 if (this.messages.length > 200) { 130 133 this.messages = [...this.messages.slice(this.messages.length - 199), message] 131 134 }
static/notif.wav

This is a binary file and will not be displayed.