style improvement
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) {