mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-19 19:13:13 +02:00
Do not hide notification behind message bar
This commit is contained in:
parent
2cd7839da3
commit
4a5f34801a
4 changed files with 42 additions and 13 deletions
web/src/app
|
@ -37,11 +37,15 @@ class Api {
|
|||
message: message,
|
||||
...options
|
||||
};
|
||||
await fetch(baseUrl, {
|
||||
const response = await fetch(baseUrl, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify(body),
|
||||
headers: maybeWithBasicAuth(headers, user)
|
||||
});
|
||||
if (response.status < 200 || response.status > 299) {
|
||||
throw new Error(`Unexpected response: ${response.status}`);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue