1
0
Fork 0
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:
Philipp Heckel 2022-04-05 22:57:57 -04:00
parent 2cd7839da3
commit 4a5f34801a
4 changed files with 42 additions and 13 deletions
web/src/app

View file

@ -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;
}
/**