mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
confirm before a factory reset
This commit is contained in:
@@ -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