Count the windows also
- ID
48f229a- date
2024-05-14 21:33:27+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
9e40bda- message
Count the windows also- changed files
1 file, 1 addition, 1 deletion
Changed files
macos/count_tabs (408) → macos/count_tabs (462)
diff --git a/macos/count_tabs b/macos/count_tabs
index b172e55..a72099b 100755
--- a/macos/count_tabs
+++ b/macos/count_tabs
@@ -14,5 +14,5 @@ for (index = 0; index < safari.windows.length; index++) {
if (totalTabs === 1) {
'There is 1 tab open.';
} else {
- `There are ${totalTabs} tabs open.`;
+ `There are ${totalTabs} tabs open in ${windowCount} window${windowCount > 1 ? 's' : ''}.`;
}