console.log cleanup
This commit is contained in:
parent
068d3a438c
commit
35cb3d424b
|
@ -126,15 +126,10 @@ const navigation = (() => {
|
||||||
postMessage('loaded');
|
postMessage('loaded');
|
||||||
};
|
};
|
||||||
|
|
||||||
const countLoadedCanvases = () => {
|
const countLoadedCanvases = () => displays.reduce((acc, display) => {
|
||||||
const result = displays.reduce((acc, display) => {
|
if (display.status !== STATUS.loading) return acc + 1;
|
||||||
console.log(display.name, display.status);
|
return acc;
|
||||||
if (display.status !== STATUS.loading) return acc + 1;
|
}, 0);
|
||||||
return acc;
|
|
||||||
}, 0);
|
|
||||||
console.log(result);
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
|
|
||||||
const hideAllCanvases = () => {
|
const hideAllCanvases = () => {
|
||||||
displays.forEach((display) => display.hideCanvas());
|
displays.forEach((display) => display.hideCanvas());
|
||||||
|
|
Loading…
Reference in a new issue