diff --git a/src/versionSocketConnection.ts b/src/versionSocketConnection.ts index 95673792..b5121cda 100644 --- a/src/versionSocketConnection.ts +++ b/src/versionSocketConnection.ts @@ -70,8 +70,8 @@ export class BrowserVersionDetectionSocket extends EventEmitter { const productParts = (data.result.product as string).split('/'); const isHeadless = productParts[0].includes('Headless'); const versionNum = productParts[1]; - const currentVersion = versionNum.split('.'); - const minSupportedVersion = MIN_SUPPORTED_VERSION.split('.'); + const currentVersion = versionNum.split('.').map(part => Number(part)); + const minSupportedVersion = MIN_SUPPORTED_VERSION.split('.').map(part => Number(part)); const currentRevision = data.result.revision || ''; for (let i = 0; i < currentVersion.length; i++) { // Loop through from Major to minor numbers