Skip to content

Instantly share code, notes, and snippets.

@daybrush
Created September 2, 2020 05:30
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/47fc41c651f1147a3dcfacb6604fb86e to your computer and use it in GitHub Desktop.
Save daybrush/47fc41c651f1147a3dcfacb6604fb86e to your computer and use it in GitHub Desktop.
import getAgent from "@egjs/agent";
const agent = getAgent();
if ((agent.os.name === "mac" || agent.os.name === "ios") && agent.browser.webkit) {
console.log("is mac, ios webkit");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment