From 24622463bce5c68cad6b11d9ddc92043b93fa84b Mon Sep 17 00:00:00 2001 From: Nathan Birrell Date: Tue, 28 Mar 2017 08:26:18 +1100 Subject: [PATCH] Remove loader text --- main.js | 8 +++++--- renderer.js | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index a5721c4..8599d04 100644 --- a/main.js +++ b/main.js @@ -11,11 +11,13 @@ const config = new Config() const path = require('path') const url = require('url') +const defaultUrl = 'https://www.trello.com/' + let currentUri = config.get('currentUri') // Set current URL as default if not set if (!currentUri || currentUri === '') { - currentUri = 'https://www.trello.com/' + currentUri = defaultUrl; config.set('currentUri', currentUri) } @@ -30,6 +32,7 @@ function createWindow () { transparent: false, frame: true } + Object.assign(options, config.get('winBounds')) // Create the browser window. @@ -43,7 +46,7 @@ function createWindow () { })) // Open the DevTools. - mainWindow.webContents.openDevTools() + // mainWindow.webContents.openDevTools() // Emitted when the window is closed. mainWindow.on('close', function () { @@ -63,7 +66,6 @@ exports.getCurrentUri = () => { return currentUri; }; exports.setCurrentUri = function(uri) { - console.log('setCurrentUri= ' + uri); currentUri = uri; } diff --git a/renderer.js b/renderer.js index fae0e5e..f71aa89 100644 --- a/renderer.js +++ b/renderer.js @@ -13,8 +13,8 @@ let loadedCurrent = false; onload = () => { const loadstart = () => { - indicator.innerText = 'loading...' - console.log(getCurrentUri()) + // TODO: do something with loader.. + // indicator.innerText = 'loading...' if (!loadedCurrent) { webview.loadURL(getCurrentUri()) } @@ -22,7 +22,8 @@ onload = () => { } const loadstop = () => { - indicator.innerText = '' + // TODO: do something with loader.. + // indicator.innerText = '' } webview.addEventListener('did-start-loading', loadstart)