Skip to content

Commit afc3d1b

Browse files
committed
minor fixes
1 parent 0467701 commit afc3d1b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/app.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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;

src/browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)