File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -538,17 +538,17 @@ class Server {
538
538
} ) ;
539
539
}
540
540
541
- runBonjour ( options ) {
541
+ runBonjour ( ) {
542
542
const bonjour = require ( 'bonjour' ) ( ) ;
543
543
const os = require ( 'os' ) ;
544
- const { https, port } = options ;
544
+ const { https, port } = this . options ;
545
545
546
546
bonjour . publish ( {
547
547
name : `Webpack Dev Server ${ os . hostname ( ) } :${ port } ` ,
548
548
port,
549
549
type : https ? 'https' : 'http' ,
550
550
subtypes : [ 'webpack' ] ,
551
- ...options . bonjour ,
551
+ ...this . options . bonjour ,
552
552
} ) ;
553
553
554
554
process . on ( 'exit' , ( ) => {
@@ -606,7 +606,7 @@ class Server {
606
606
openTasks . push ( ...getOpenTask ( options ) ) ;
607
607
}
608
608
609
- return Promise . all (
609
+ Promise . all (
610
610
openTasks . map ( ( openTask ) => {
611
611
let openTarget ;
612
612
@@ -825,7 +825,7 @@ class Server {
825
825
}
826
826
827
827
if ( this . options . bonjour ) {
828
- this . runBonjour ( this . options ) ;
828
+ this . runBonjour ( ) ;
829
829
}
830
830
831
831
this . logStatus ( ) ;
You can’t perform that action at this time.
0 commit comments