mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Add query cancellation for play queue requests
- Opens a notification after 2s to allow for manual cancellation of in-progress query
This commit is contained in:
parent
652c4a1f81
commit
292737d53c
2 changed files with 65 additions and 2 deletions
|
|
@ -1001,3 +1001,7 @@ export type SearchResponse = {
|
|||
albums: Album[];
|
||||
songs: Song[];
|
||||
};
|
||||
|
||||
export const instanceOfCancellationError = (error: any) => {
|
||||
return 'revert' in error;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue