Created
August 28, 2013 08:32
-
-
Save FokkeZB/6363589 to your computer and use it in GitHub Desktop.
Need to run/skip code only when ran via TiShadow?
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
// Add do your app.js or alloy.js | |
Ti.Shadow = (typeof __p === 'object'); | |
// Use it anywhere | |
if (OS_IOS && !Ti.Shadow) { | |
require('dk.napp.testflight').takeOff(Alloy.CFG.testFlightToken); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment