Skip to content

Instantly share code, notes, and snippets.

@usualoma
Last active May 23, 2019 11:59
Show Gist options
  • Save usualoma/9a220d761578d9c586868321723cc219 to your computer and use it in GitHub Desktop.
Save usualoma/9a220d761578d9c586868321723cc219 to your computer and use it in GitHub Desktop.
if (userAgent.name === "Safari") {
// reCAPTCHA has a critical bug on Safari
if (window.innerWidth > 512) {
try {
window.innerWidth = 512;
} catch (e) {
// ignore
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment