Skip to content

Instantly share code, notes, and snippets.

@daybrush
Last active September 2, 2020 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daybrush/dbd0509d3ee4567ebff196c34bfcc2f8 to your computer and use it in GitHub Desktop.
Save daybrush/dbd0509d3ee4567ebff196c34bfcc2f8 to your computer and use it in GitHub Desktop.
import getAgent from "@egjs/agent";
const agent = getAgent();
// Mac OS X 10.15.4, Chrome Canary 87.0.4243.0
// "chrome"
agent.browser.name
// "87" (before "87.0.4243.0")
agent.browser.version
// "unknown" (before mac)
agent.os.name
// "-1" (before 10.15.4)
agent.os.version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment