add disable-plugin-list, --store-plaintext and --dev-mode run arguments

fixes #6
This commit is contained in:
Kevin Froman 2020-10-16 06:30:59 +00:00
parent fcfecaff7e
commit 989692c6ac
2 changed files with 26 additions and 1 deletions

View file

@ -27,11 +27,12 @@ function sidebarAddPeerRegister(){
if (! resp.ok){
if (resp.status == 409){
PNotify.notice({text: "Peer already added"})
return
throw new Error("Could not add peer " + newPeer + " already added")
}
PNotify.error({text: "Could not add peer. Is your input valid?"})
throw new Error("Could not add peer " + newPeer)
}
return resp
})
.then((resp) => resp.text())
.then(function(data) {