mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Use const instead of let when finding chrome version
This commit is contained in:
parent
a2d2eca54c
commit
2e79da8a1c
1 changed files with 3 additions and 3 deletions
|
@ -64,8 +64,8 @@ class SeleniumHelper {
|
|||
}
|
||||
|
||||
getChromeVersionNumber () {
|
||||
let versionFinder = /\d+\.\d+/;
|
||||
let versionArray = versionFinder.exec(chromedriverVersion);
|
||||
const versionFinder = /\d+\.\d+/;
|
||||
const versionArray = versionFinder.exec(chromedriverVersion);
|
||||
if (versionArray === null) {
|
||||
throw new Error('couldn\'t find version of chromedriver');
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ class SeleniumHelper {
|
|||
}
|
||||
|
||||
getSauceDriver (username, accessKey, name) {
|
||||
let chromeVersion = this.getChromeVersionNumber();
|
||||
const chromeVersion = this.getChromeVersionNumber();
|
||||
// Driver configs can be generated with the Sauce Platform Configurator
|
||||
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator
|
||||
let driverConfig = {
|
||||
|
|
Loading…
Reference in a new issue