mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
fixed error handling for domain
This commit is contained in:
@@ -12,13 +12,13 @@ let tray = null;
|
||||
let aboutWindow;
|
||||
let domainWindow;
|
||||
|
||||
const iconPath = path.join(__dirname, '../resources', 'Icon.png');
|
||||
|
||||
exports.create = win => {
|
||||
if (process.platform === 'darwin' || tray) {
|
||||
return;
|
||||
}
|
||||
|
||||
const iconPath = path.join(__dirname, '../resources', 'Icon.png');
|
||||
|
||||
const toggleWin = () => {
|
||||
if (win.isVisible()) {
|
||||
win.hide();
|
||||
|
@@ -9,9 +9,9 @@
|
||||
window.location.href = 'https://' + data["domain"];
|
||||
} else {
|
||||
dialogs.prompt('Enter the URL for your Zulip server', function(url) {
|
||||
url = url.replace(/^https?:\/\//,'')
|
||||
db.push("/domain", url);
|
||||
window.location.href = 'https://' + url ;
|
||||
newurl = url.replace(/^https?:\/\//,'')
|
||||
db.push("/domain", newurl);
|
||||
window.location.href = 'https://' + newurl ;
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user