toast hotfix

AuthorKonata <konata@posteo.jp>
Date
Commit1dfdcc1486ab04233f5d96b516b19947a943d155
Parent38b63f7
2 files changed, 2 insertions(+), 1 deletion(-)
▾Mwebclient/src/App.tsx
@@ -11,6 +11,7 @@ import { getSrc } from "./offline";
import { MediaFormat } from "music-server-shared/types";
import PlaylistManager from "./components/PlaylistManager";
//TODO: better error messages for unsupported codec
//TODO: dont store playlists with id
//TODO: remember scroll position for parent directories
//TODO: when downloading dirs, maybe put all subfiles in a "downloading" state to not accidentally trigger them twice
▾Mwebclient/src/utils.ts
@@ -55,7 +55,7 @@ export function toast(text: string, type: "info" | "error" | "success", e?: unkn
: "linear-gradient(135deg,rgb(50, 60, 255),rgb(34, 37, 209))",
},
});
thisToast.showToast;
thisToast.showToast();
return thisToast;
}