Last active
September 4, 2020 07:10
-
-
Save daybrush/5ac92bbf26bcf4ca9fff2e2f4599864c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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