diff --git a/resources/js/index.js b/resources/js/index.js index 91c1e0a..8699067 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -346,10 +346,11 @@ function loadService(serviceId, service) { } document.querySelector('#services > .loader').classList.add('hidden'); - updateNavigation(); service.li.classList.add('loaded'); service.viewReady = true; + updateNavigation(); + if (selectedService === null) { setActiveService(serviceId); } @@ -438,7 +439,7 @@ function updateNavigation() { function updateWindowTitle() { if (selectedService === null) { ipcRenderer.send('updateWindowTitle', null); - } else { + } else if(services[selectedService].viewReady) { ipcRenderer.send('updateWindowTitle', selectedService, services[selectedService].view.getWebContents().getTitle()); } }