mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-22 03:29:31 -07:00
console.log cleanup
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user