clean up log

This commit is contained in:
Alexander Bass 2023-02-17 11:23:43 -05:00
parent 5dd7ce2f6a
commit 11d74e9d6f

View file

@ -3,7 +3,6 @@ var GLOBAL_VOLUME;
let mediaElements = [];
document.addEventListener("DOMContentLoaded", () => {
console.log("Loaded");
mediaElements = Array.from(document.getElementsByTagName("audio"));
mediaElements.push(...Array.from(document.getElementsByTagName("video")));
@ -11,7 +10,7 @@ document.addEventListener("DOMContentLoaded", () => {
return el.controls;
});
console.log(`Watching: ${mediaElements.length} media elements`);
console.log(`AVControlSync: Watching ${mediaElements.length} media elements`);
mediaElements.forEach((el) => {
el.addEventListener("volumechange", (e) => {
updateGlobalVolume(e.target.volume);