Skip to content

Commit

Permalink
Print the initial Slide's URL on statup (#430)
Browse files Browse the repository at this point in the history
This message is helpful in cases where the URL is not automatically
opened. E.g. when running the application via Docker.
  • Loading branch information
gurjeet committed Dec 4, 2022
1 parent 7af4686 commit 45a60d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/reveal-md.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ updater({ pkg }).notify();
server.close();
} else {
[server, initialUrl] = await startServer();
console.log(`The slides are at ${initialUrl}`);
!disableAutoOpen && open(initialUrl, { url: true });
process.on('SIGINT', () => {
console.log('Received SIGINT, closing gracefully.');
Expand Down

0 comments on commit 45a60d2

Please sign in to comment.