Skip to content

Instantly share code, notes, and snippets.

@daybrush
Last active September 4, 2020 07:10
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/5ac92bbf26bcf4ca9fff2e2f4599864c to your computer and use it in GitHub Desktop.
Save daybrush/5ac92bbf26bcf4ca9fff2e2f4599864c to your computer and use it in GitHub Desktop.
import getAgent from "@egjs/agent";
const agent = getAgent();
if (
agent.os.name === "android"
&& (agent.os.majorVersion >= 5 || agent.isHints) {
console.log("is Android >= 5");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment