NathanaelA / nativescript-permissions

Wraps up the entire Android 6 permissions system in a easy to use plugin.
MIT License
46 stars 22 forks source link

Fix crash on require in iOS #6

Closed mnahkies closed 8 years ago

mnahkies commented 8 years ago

Check for android property on application, rather than access an undefined global on iOS. Referencing undefined global variables throws an exception in strict mode.

NathanaelA commented 8 years ago

Man, I feel really stupid. I know way way better than to do that stupid of a check; and yet I still did it. LOL. I appreciate the pull request too -- but I actually have a mucho better way to check for android that doesn't require pulling in any extra require's...

NathanaelA commented 8 years ago

I've released a new version of this... Again THANKS!!!