File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,7 @@ async function main() {
1414 const browser = new Browser ( logger ) ;
1515 const plugin = new GrpcPlugin ( logger , browser ) ;
1616 plugin . start ( ) ;
17- }
18-
19- if ( command === 'server' ) {
17+ } else if ( command === 'server' ) {
2018 if ( ! argv . port ) {
2119 console . log ( 'Specify http port using --port=5000' ) ;
2220 return ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class Browser {
2525 async render ( options ) {
2626 let browser ;
2727 let page ;
28- let env = Object . assign ( { } , process . env ) ;
28+ const env = Object . assign ( { } , process . env ) ;
2929
3030 try {
3131 this . validateOptions ( options ) ;
@@ -52,7 +52,7 @@ export class Browser {
5252
5353 // wait for all panels to render
5454 await page . waitForFunction ( ( ) => {
55- var panelCount = document . querySelectorAll ( '.panel' ) . length ;
55+ const panelCount = document . querySelectorAll ( '.panel' ) . length ;
5656 return ( < any > window ) . panelsRendered >= panelCount ;
5757 } , {
5858 timeout : options . timeout * 1000
You can’t perform that action at this time.
0 commit comments