mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-18 13:11:27 +01:00
confirm before a factory reset
This commit is contained in:
1 parent
301783ae40
commit
9174f7d086
2 files changed
+5
-1
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user