1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-28 17:35:36 +02:00
This commit is contained in:
Philipp Heckel 2022-03-06 10:42:05 -05:00
parent dc7ca6e405
commit 94296e7dd8
3 changed files with 12 additions and 11 deletions
web/src/components

View file

@ -23,14 +23,11 @@ import {subscriptionRoute} from "../app/utils";
// TODO support unsubscribed routes
// TODO add "home" route that is selected when nothing else fits
// TODO new notification indicator
// TODO sound
// TODO sound autoplay error warning
// TODO "copy url" toast
// TODO "copy link url" button
// TODO races when two tabs are open
// TODO sound mentions
// https://notificationsounds.com/message-tones/pristine-609
// https://notificationsounds.com/message-tones/juntos-607
// https://notificationsounds.com/notification-sounds/beep-472
// TODO investigate service workers
const App = () => {
return (
@ -149,8 +146,7 @@ const findSelected = (location, subscriptions) => {
if (!subscriptions || !location) {
return null;
}
const [subscription] = subscriptions
.filter(s => location.pathname === subscriptionRoute(s));
const [subscription] = subscriptions.filter(s => location.pathname === subscriptionRoute(s));
return subscription;
};

View file

@ -236,7 +236,7 @@ const Icon = (props) => {
return (
<Box
component="img"
src={`static/img/${imageFile}`}
src={`/static/img/${imageFile}`}
loading="lazy"
sx={{
width: '28px',