context menu updated + validate domain

This commit is contained in:
akashnimare
2016-07-23 19:39:55 +05:30
parent 020d7fc68b
commit 50f0b45f9c
3 changed files with 2 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ function addDomain() {
request(checkDomain, function (error, response, body) {
if (!error && response.statusCode !== 404) {
document.getElementById('urladded').innerHTML = newDomain + ' Added';
db.push('/domain', newDomain);
db.push('/domain', domain);
ipcRenderer.send('new-domain', domain);
}
else{