Skip to content

Instantly share code, notes, and snippets.

@mercutiodesign
Created April 17, 2020 13:41
Show Gist options
  • Save mercutiodesign/813fa31123764343ab9a62fafb2a8df7 to your computer and use it in GitHub Desktop.
Save mercutiodesign/813fa31123764343ab9a62fafb2a8df7 to your computer and use it in GitHub Desktop.
import * as Bowser from "bowser";
const browser = Bowser.getParser(window.navigator.userAgent);
const isValidBrowser = browser.satisfies({
chrome: ">77",
firefox: ">72",
safari: ">11",
edge: ">79",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment