Skip to content

Commit

Permalink
Prints removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Ewing [c] committed Jul 30, 2024
1 parent 89eed51 commit 74a14f2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,15 @@ async function getCurrentTabTitleAndSound() {
*
*/
async function getAllTabTitlesAndSounds() {
// ! fix
let queryOptions = {}; // * Get tabs across all chrome windows
let tabs = await chrome.tabs.query(queryOptions);
let tabTitle = [], tabAudio = [], tabMuted = [];
for (const tab of tabs) {
if (tab) {
console.log(` !!Title: ${tab.title}`);
tabTitle.push(tab.title);
console.log(` !!Muted: ${tab.mutedInfo.muted}`);
console.log(` !!Audible: ${tab.audible}`);
tabMuted.push((tab.mutedInfo.muted).toString())
if (tab.audible) {
tabAudio.push("true");

}
else {
tabAudio.push("false");
Expand Down

0 comments on commit 74a14f2

Please sign in to comment.