Merge pull request #11 from LiuJi-Jim/master

fix detect bug in iOS
Use double quotes instead of single quotes #11
Merge pull request #1 from eligrey/master

sync with author's fork