validate zulip server in pref window

This commit is contained in:
akashnimare
2016-07-23 19:15:59 +05:30
parent 3a162352fc
commit 020d7fc68b
2 changed files with 16 additions and 5 deletions

View File

@@ -6,10 +6,10 @@
const data = db.getData("/");
if (data["domain"] !== undefined) {
window.location.href = 'https://' + data["domain"];
window.location.href = data["domain"];
} else {
dialogs.prompt('Enter the URL for your Zulip server', function(url) {
let newurl = 'https://' + url.replace(/^https?:\/\//,'')