From 1175024af2610a3e1c971ceeb84c51c53a02c058 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 21 Jan 2020 13:25:36 +0100 Subject: [PATCH] Add debug logs --- resources/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/js/index.js b/resources/js/index.js index b59ec95..91c1e0a 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -327,6 +327,8 @@ function setActiveService(serviceId) { function loadService(serviceId, service) { // Load service if not loaded yet if (!service.view && !service.viewReady) { + console.log('Loading service', serviceId); + document.querySelector('#services > .loader').classList.remove('hidden'); service.view = document.createElement('webview'); service.view.setAttribute('src', service.url); @@ -398,6 +400,7 @@ function unloadService(serviceId) { function reloadService(serviceId) { const service = services[serviceId]; if (service.view && service.viewReady) { + console.log('Reloading service', serviceId); document.querySelector('#services > .loader').classList.remove('hidden'); service.view.reload(); } else if (!service.view && !service.viewReady) {