Skip to content

Instantly share code, notes, and snippets.

@FokkeZB
Created August 28, 2013 08:32
Show Gist options
  • Save FokkeZB/6363589 to your computer and use it in GitHub Desktop.
Save FokkeZB/6363589 to your computer and use it in GitHub Desktop.
Need to run/skip code only when ran via TiShadow?
// 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