-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(doclint): correctly get versions on windows #1350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only option? winVersionInfo
is uncomfortably huge)
I can launch and parse the user agent. Wdyt? |
SG! Shall we do it on win-only? |
c84c205
to
e4a0abe
Compare
Uploaded a version that does this. But the firefox version in the user agent is |
utils/doclint/cli.js
Outdated
|
||
async function getVersion(browserType) { | ||
if (os.platform() === 'win32' || os.platform() === 'cygwin') { | ||
const browser = await browserType.launch(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a pity we don't have a browser.version()
!
Oh wait. I just understood that Is it fast enough? |
It is very slow, but I can maybe condition it on release? |
e4a0abe
to
030c596
Compare
030c596
to
fef5c9d
Compare
I found out that firefox supports |
--version
doesn't work on windows.