confirm before a factory reset

This commit is contained in:
andreas committed 2021-11-02 21:32:48 +01:00
1 parent 301783ae40
commit 9174f7d086
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -103,6 +103,10 @@
})
}
function factoryReset(){
if (! confirm("Really delete all configuration?\n"+
"This will reset all your Wifi settings and disconnect you.")){
return;
}
getJson("/api/resetConfig")
.then(function(status){
alertRestart();