Apply workaround for iOS menu bug to next 9 minor versions of iOS

Bug: T264376
Change-Id: I569e7dd5eae888de42f81f3973a23fb832b2c942
This commit is contained in:
jdlrobson 2020-11-04 14:38:03 -08:00
parent a273423563
commit 1b9ec30472

View file

@ -26,7 +26,7 @@ function init() {
// This hot fix should be reviewed and possibly removed circa January 2021.
// It's assumed that Apple will prioritize fixing this bug in one of its next releases.
// See T264376.
if ( navigator.userAgent.match( /OS 14_0/ ) ) {
if ( navigator.userAgent.match( /OS 14_[0-9]/ ) ) {
document.body.classList.add( 'hotfix-T264376' );
}
}