mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-24 16:43:38 +00:00
🐛 🔧 linting error fixed
This commit is contained in:
@@ -148,12 +148,12 @@ function createMainWindow() {
|
|||||||
allowDisplayingInsecureContent: true,
|
allowDisplayingInsecureContent: true,
|
||||||
nodeIntegration: false
|
nodeIntegration: false
|
||||||
},
|
},
|
||||||
show:false
|
show: false
|
||||||
});
|
});
|
||||||
|
|
||||||
win.once('ready-to-show', () => {
|
win.once('ready-to-show', () => {
|
||||||
win.show();
|
win.show();
|
||||||
})
|
});
|
||||||
win.loadURL(targetURL(),
|
win.loadURL(targetURL(),
|
||||||
{
|
{
|
||||||
userAgent: isUserAgent + ' ' + win.webContents.getUserAgent()
|
userAgent: isUserAgent + ' ' + win.webContents.getUserAgent()
|
||||||
|
|||||||
@@ -34,22 +34,20 @@ function createdomainWindow() {
|
|||||||
|
|
||||||
return domainwin;
|
return domainwin;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call this window onClick addDomain in tray
|
// Call this window onClick addDomain in tray
|
||||||
function addDomain() {
|
function addDomain() {
|
||||||
domainWindow = createdomainWindow();
|
domainWindow = createdomainWindow();
|
||||||
domainWindow.once('ready-to-show', () => {
|
domainWindow.once('ready-to-show', () => {
|
||||||
domainWindow.show();
|
domainWindow.show();
|
||||||
});
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
if (domainWindow !== null) {
|
||||||
setTimeout(() => {
|
if (!domainWindow.isDestroyed()) {
|
||||||
if (domainWindow!=null) {if (!domainWindow.isDestroyed()) domainWindow.destroy()}
|
domainWindow.destroy();
|
||||||
}, 15000);
|
}
|
||||||
|
}
|
||||||
|
}, 15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// About window
|
// About window
|
||||||
function createAboutWindow() {
|
function createAboutWindow() {
|
||||||
const aboutwin = new electron.BrowserWindow({
|
const aboutwin = new electron.BrowserWindow({
|
||||||
@@ -81,7 +79,7 @@ function about() {
|
|||||||
aboutWindow = createAboutWindow();
|
aboutWindow = createAboutWindow();
|
||||||
aboutWindow.once('ready-to-show', () => {
|
aboutWindow.once('ready-to-show', () => {
|
||||||
aboutWindow.show();
|
aboutWindow.show();
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
exports = module.exports = {
|
exports = module.exports = {
|
||||||
|
|||||||
Reference in New Issue
Block a user