Merge branch 'kwaroran:main' into main

This commit is contained in:
HyperBlaze
2024-12-03 23:28:56 -08:00
committed by GitHub
30 changed files with 222 additions and 61 deletions

View File

@@ -1330,6 +1330,22 @@ export async function sendChat(chatProcessIndex = -1,arg:{
})
}
if(DBState.db.notification){
try {
const permission = await Notification.requestPermission()
if(permission === 'granted'){
const noti = new Notification('RisuAI', {
body: result
})
noti.onclick = () => {
window.focus()
}
}
} catch (error) {
}
}
chatProcessStage.set(4)
peerSync()