Skip to content

Commit

Permalink
♻️ tidy console link
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Sep 4, 2024
1 parent 5a9769c commit 73b5c0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/reveal/revealServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,21 @@ export class RevealServer {
if (this.running) {
console.debug(
'Slides Extended server is already running',
this._server.listeningOrigin,
this._server.listeningOrigin.replace(
/(127\.0\.0\.1|\[::1\])/,
'localhost',
),
);
return;
}
try {
await this._server.listen({ host: 'localhost', port: this._port });
console.info(
'Slides Extended is ready to go.',
this._server.listeningOrigin,
this._server.listeningOrigin.replace(
/(127\.0\.0\.1|\[::1\])/,
'localhost',
),
);
} catch (err) {
new Notice(
Expand Down

0 comments on commit 73b5c0d

Please sign in to comment.