Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Jan 5, 2024
1 parent 53c900e commit 454d0c6
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/options/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,9 @@ twitchTabsReportButtonElement.addEventListener("click", async () => {
// Print all opened tabs.
report += `Opened Twitch tabs (${openedTabs.length}):\n`;
for (const tab of openedTabs) {
report += `- ${tab.url} (id: ${tab.id}, windowId: ${tab.windowId})\n`;
report += `- ${tab.url || tab.pendingUrl} (id: ${tab.id}, windowId: ${
tab.windowId
})\n`;
}
report += "\n";

Expand All @@ -634,7 +636,9 @@ twitchTabsReportButtonElement.addEventListener("click", async () => {
openedWhitelistedTabs.length
} ${openedWhitelistedTabs.length === 1 ? "is" : "are"} whitelisted:\n`;
for (const tab of openedWhitelistedTabs) {
report += `- ${tab.url} (id: ${tab.id}, windowId: ${tab.windowId})\n`;
report += `- ${tab.url || tab.pendingUrl} (id: ${tab.id}, windowId: ${
tab.windowId
})\n`;
}
report += "\n";

Expand All @@ -645,7 +649,9 @@ twitchTabsReportButtonElement.addEventListener("click", async () => {
if (missingTabs.length > 0) {
report += `The following Twitch tabs are missing from \`store.state.openedTwitchTabs\`:\n`;
for (const tab of missingTabs) {
report += `- ${tab.url} (id: ${tab.id}, windowId: ${tab.windowId})\n`;
report += `- ${tab.url || tab.pendingUrl} (id: ${tab.id}, windowId: ${
tab.windowId
})\n`;
}
report += "\n";
} else {
Expand All @@ -660,7 +666,9 @@ twitchTabsReportButtonElement.addEventListener("click", async () => {
if (extraTabs.length > 0) {
report += `The following Twitch tabs are extra in \`store.state.openedTwitchTabs\`:\n`;
for (const tab of extraTabs) {
report += `- ${tab.url} (id: ${tab.id}, windowId: ${tab.windowId})\n`;
report += `- ${tab.url || tab.pendingUrl} (id: ${tab.id}, windowId: ${
tab.windowId
})\n`;
}
report += "\n";
} else {
Expand All @@ -683,7 +691,9 @@ twitchTabsReportButtonElement.addEventListener("click", async () => {
detectedWhitelistedTabs.length
} ${detectedWhitelistedTabs.length === 1 ? "is" : "are"} whitelisted:\n`;
for (const tab of detectedWhitelistedTabs) {
report += `- ${tab.url} (id: ${tab.id}, windowId: ${tab.windowId})\n`;
report += `- ${tab.url || tab.pendingUrl} (id: ${tab.id}, windowId: ${
tab.windowId
})\n`;
}
report += "\n";

Expand Down

0 comments on commit 454d0c6

Please # to comment.