style improvement

AuthorKonata <konata@posteo.jp>
Date
Commitca61259f55b3ee3b5665d065b1500444eb95265d
Parent076a6b0
1 file changed, 3 insertions(+), 1 deletion(-)
▾Mwebclient/src/index.tsx
@@ -46,15 +46,17 @@ if (hasTouch()) {
const currentVersion = "1";
const version = localStorage.getItem("app-version");
if (version && version !== currentVersion) {
//TODO: add a way to at least export playlists before resetting
root.innerHTML = "";
render(
() => (
<div style={{ display: "flex", height: "100%", "align-items": "center" }}>
<dialog open>
<div>
Your local version of this application is not compatible with the newly loaded one, click reset to delete
Your local version of this application is not compatible with the newly loaded one, click "Reset" to delete
all stored settings, files and cached and refresh the page.
<button
style={{ margin: "auto" }}
onClick={async () => {
localStorage.clear();
if ("serviceWorker" in navigator) {