Reload page after clearing preferences

This commit is contained in:
Dome
2026-04-07 19:32:44 +02:00
committed by GitHub
parent ef43b377c1
commit cda2271e9e
+1 -1
View File
@@ -37,7 +37,7 @@ export class RootView extends TemplateView {
externalLink(t, "https://github.com/matrix-org/matrix.to", "Matrix-to")
]),
t.p({className: {hidden: vm => !vm.hasPreferences}}, [
t.button({className: "text", onClick: () => vm.clearPreferences()}, "Clear preferences")
t.button({className: "text", onClick: () => { vm.clearPreferences(); location.reload(); }}, "Clear preferences")
])
])
]);