🐛 🔧 linting error fixed

This commit is contained in:
Lplenka
2017-03-11 01:55:48 +05:30
parent d7d3017bc1
commit bfcaa51c46
2 changed files with 10 additions and 12 deletions

View File

@@ -148,12 +148,12 @@ function createMainWindow() {
allowDisplayingInsecureContent: true,
nodeIntegration: false
},
show:false
show: false
});
win.once('ready-to-show', () => {
win.show();
})
});
win.loadURL(targetURL(),
{
userAgent: isUserAgent + ' ' + win.webContents.getUserAgent()

View File

@@ -34,22 +34,20 @@ function createdomainWindow() {
return domainwin;
}
// Call this window onClick addDomain in tray
function addDomain() {
domainWindow = createdomainWindow();
domainWindow.once('ready-to-show', () => {
domainWindow.show();
});
setTimeout(() => {
if (domainWindow!=null) {if (!domainWindow.isDestroyed()) domainWindow.destroy()}
}, 15000);
setTimeout(() => {
if (domainWindow !== null) {
if (!domainWindow.isDestroyed()) {
domainWindow.destroy();
}
}
}, 15000);
}
// About window
function createAboutWindow() {
const aboutwin = new electron.BrowserWindow({
@@ -81,7 +79,7 @@ function about() {
aboutWindow = createAboutWindow();
aboutWindow.once('ready-to-show', () => {
aboutWindow.show();
})
});
}
exports = module.exports = {