feat: add fetch call to update nadae state on activation
This commit is contained in:
parent
991bc55102
commit
226cf6385e
1 changed files with 3 additions and 0 deletions
|
|
@ -33,6 +33,9 @@ export default function DraggableWindow() {
|
|||
|
||||
audioRef.current.currentTime = 0;
|
||||
void audioRef.current.play();
|
||||
void fetch('https://api.imnya.ng/nadae', {
|
||||
method: 'PUT',
|
||||
}).catch(() => null);
|
||||
|
||||
setIsNadaeVisible(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue