Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 2c92619

Browse files
author
Diego Geffner
committed
Feedback
1 parent 39c4423 commit 2c92619

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/chromeDebugAdapter.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ export class ChromeDebugAdapter extends CoreDebugAdapter {
282282
if (this._breakOnLoadHelper) {
283283
// This is what -core is doing. We only actually care to see if this fails, to see if we need to apply the workaround
284284
const browserVersion = (await this._chromeConnection.version).browser;
285-
if (browserVersion.isAtLeastVersion(0, 1)) { // If this is false it means it's unknown version
286-
this._breakOnLoadHelper.setBrowserVersion(browserVersion);
287-
} else {
285+
if (!browserVersion.isAtLeastVersion(0, 1)) { // If this is true it means it's unknown version
288286
logger.log(`/json/version failed, attempting workaround to get the version`);
289287
// If the original way failed, we try to use versionInformationPromise to get this information
290288
const versionInformation = await versionInformationPromise;

0 commit comments

Comments
 (0)