Add debug logs
This commit is contained in:
parent
e4a3efbd76
commit
1175024af2
@ -327,6 +327,8 @@ function setActiveService(serviceId) {
|
|||||||
function loadService(serviceId, service) {
|
function loadService(serviceId, service) {
|
||||||
// Load service if not loaded yet
|
// Load service if not loaded yet
|
||||||
if (!service.view && !service.viewReady) {
|
if (!service.view && !service.viewReady) {
|
||||||
|
console.log('Loading service', serviceId);
|
||||||
|
|
||||||
document.querySelector('#services > .loader').classList.remove('hidden');
|
document.querySelector('#services > .loader').classList.remove('hidden');
|
||||||
service.view = document.createElement('webview');
|
service.view = document.createElement('webview');
|
||||||
service.view.setAttribute('src', service.url);
|
service.view.setAttribute('src', service.url);
|
||||||
@ -398,6 +400,7 @@ function unloadService(serviceId) {
|
|||||||
function reloadService(serviceId) {
|
function reloadService(serviceId) {
|
||||||
const service = services[serviceId];
|
const service = services[serviceId];
|
||||||
if (service.view && service.viewReady) {
|
if (service.view && service.viewReady) {
|
||||||
|
console.log('Reloading service', serviceId);
|
||||||
document.querySelector('#services > .loader').classList.remove('hidden');
|
document.querySelector('#services > .loader').classList.remove('hidden');
|
||||||
service.view.reload();
|
service.view.reload();
|
||||||
} else if (!service.view && !service.viewReady) {
|
} else if (!service.view && !service.viewReady) {
|
||||||
|
Loading…
Reference in New Issue
Block a user