Skip to content

Commit a011417

Browse files
committed
refactor: code
1 parent df1dd03 commit a011417

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ class Server {
538538
});
539539
}
540540

541-
static runBonjour(options) {
541+
runBonjour(options) {
542542
const bonjour = require('bonjour')();
543543
const os = require('os');
544544
const { https, port } = options;
@@ -558,7 +558,7 @@ class Server {
558558
});
559559
}
560560

561-
runOpen(uri, options) {
561+
openBrowser(uri, options) {
562562
const isAbsoluteUrl = require('is-absolute-url');
563563
const open = require('open');
564564

@@ -766,7 +766,7 @@ class Server {
766766
if (this.options.open) {
767767
const openTarget = prettyPrintUrl(this.options.host || 'localhost');
768768

769-
this.runOpen(openTarget, this.options.open);
769+
this.openBrowser(openTarget, this.options.open);
770770
}
771771
}
772772

@@ -825,7 +825,7 @@ class Server {
825825
}
826826

827827
if (this.options.bonjour) {
828-
Server.runBonjour(this.options);
828+
this.runBonjour(this.options);
829829
}
830830

831831
this.logStatus();

0 commit comments

Comments
 (0)