Created
May 30, 2012 16:41
-
-
Save da2x/2837517 to your computer and use it in GitHub Desktop.
Mac App Store system version detection script snippet
This file contains 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
/* | |
Copyright Apple Inc and their friends. | |
Code snippet reproduced here for education purposes to show show why | |
Opera for Mac’s user-agent can’t possibly work with this code. | |
Opera/9.80 (Macintosh; Intel Mac OS X 10.7.4; U; Edition Next; nb) Presto/2.10.289 Version/12.00 | |
*/ | |
its.detect.macAppStoreDetected=function itsDetectMacAppStoreDetected(){return(its.useragent.versionMeetsMinRequirements(its.useragent.macOsVersion(),"10_6_6")||(its.x.isFirefox()&&its.useragent.versionMeetsMinRequirements(its.useragent.macOsVersion(),"10.6"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment