Skip to content

Commit

Permalink
chore: pretty print storage state
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Mar 15, 2021
1 parent 226bee0 commit bd711d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/browserContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel,
const state = await channel.storageState();
if (options.path) {
await mkdirIfNeeded(options.path);
await fsWriteFileAsync(options.path, JSON.stringify(state), 'utf8');
await fsWriteFileAsync(options.path, JSON.stringify(state, undefined, 2), 'utf8');
}
return state;
});
Expand Down

0 comments on commit bd711d6

Please sign in to comment.