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

@@ -7,7 +7,6 @@
if (data["domain"] !== undefined) {
window.location.href = data["domain"];
} else {
dialogs.prompt('Enter the URL for your Zulip server', function(url) {

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{

View File

@@ -25,7 +25,7 @@
],
"dependencies": {
"dialogs": "1.1.14",
"electron-context-menu": "^0.3.1",
"electron-context-menu": "0.4.0",
"electron-debug": "^1.0.0",
"electron-dl": "^0.2.0",
"node-json-db": "^0.7.2",