improve: add duration to torrent warn toast

This commit is contained in:
NoCrypt 2024-07-25 23:43:52 +07:00
parent 666e635fef
commit 49e2ea5c58

View file

@ -66,7 +66,7 @@ client.on('error', ({ detail }) => {
client.on('warn', ({ detail }) => {
console.error(detail)
toast.warning('Torrent Warning', { description: '' + (detail.message || detail) })
toast.warning('Torrent Warning', { description: '' + (detail.message || detail), duration: 200 })
})
export async function add (torrentID, hide) {