console.log cleanup

This commit is contained in:
Matt Walsh 2022-08-05 15:54:52 -05:00
parent 068d3a438c
commit 35cb3d424b

View file

@ -126,15 +126,10 @@ const navigation = (() => {
postMessage('loaded');
};
const countLoadedCanvases = () => {
const result = displays.reduce((acc, display) => {
console.log(display.name, display.status);
const countLoadedCanvases = () => displays.reduce((acc, display) => {
if (display.status !== STATUS.loading) return acc + 1;
return acc;
}, 0);
console.log(result);
return result;
};
const hideAllCanvases = () => {
displays.forEach((display) => display.hideCanvas());