File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ class Server {
558
558
} ) ;
559
559
}
560
560
561
- static runOpen ( uri , options , logger ) {
561
+ runOpen ( uri , options ) {
562
562
const isAbsoluteUrl = require ( 'is-absolute-url' ) ;
563
563
const open = require ( 'open' ) ;
564
564
@@ -623,7 +623,7 @@ class Server {
623
623
}
624
624
625
625
return open ( openTarget , openTask . options ) . catch ( ( ) => {
626
- logger . warn (
626
+ this . logger . warn (
627
627
`Unable to open "${ openTarget } " page${
628
628
// eslint-disable-next-line no-nested-ternary
629
629
openTask . options . app
@@ -766,7 +766,7 @@ class Server {
766
766
if ( this . options . open ) {
767
767
const openTarget = prettyPrintUrl ( this . options . host || 'localhost' ) ;
768
768
769
- Server . runOpen ( openTarget , this . options . open , this . logger ) ;
769
+ this . runOpen ( openTarget , this . options . open ) ;
770
770
}
771
771
}
772
772
You can’t perform that action at this time.
0 commit comments