diff --git a/chrome-cli/App.m b/chrome-cli/App.m index ee9a057..7821b83 100644 --- a/chrome-cli/App.m +++ b/chrome-cli/App.m @@ -700,6 +700,7 @@ - (void)printInfo:(chromeTab *)tab { if (self->outputFormat == kOutputFormatJSON) { NSDictionary *output = @{ @"id" : @(tab.id), + @"windowId" : @([self activeWindow].id), @"title" : tab.title, @"url" : tab.URL, @"loading" : @(tab.loading), @@ -707,6 +708,7 @@ - (void)printInfo:(chromeTab *)tab { [self printJSON:output]; } else { printf("Id: %ld\n", (long)tab.id); + printf("Window id: %ld\n", (long)[self activeWindow].id); printf("Title: %s\n", tab.title.UTF8String); printf("Url: %s\n", tab.URL.UTF8String); printf("Loading: %s\n", tab.loading ? "Yes" : "No");