Created
September 16, 2015 05:36
-
-
Save nabettu/48b332556c3ff681f1e5 to your computer and use it in GitHub Desktop.
iOSのLine,Facebook,Twitterのアプリ内WebViewで開いてたらfalse! for browserify
This file contains hidden or 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
module.exports = do -> | |
ua = window.navigator.userAgent.toUpperCase() | |
if (ua.match /IPOD/) or (ua.match /IPHONE/) or (ua.match /IPAD/) | |
if (ua.match /TWITTER/) or (ua.match /LINE/) or (ua.match /FBCR/) | |
return false | |
else | |
return true | |
else | |
return true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment