aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/app.js
blob: ecaba9adb3196bd3401bdf910fbfb356d0ee5bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Ti.include('/friendship/friendship.js');

fs.app.mainTabGroup = fs.ui.createApplicationTabGroup();

function output_log( str )
{
	Ti.API.info( str );
}
output_log( "created a file");

// Login switch
if (Ti.Facebook.loggedIn) {
	fs.app.mainTabGroup.open();
}
else {
	fs.ui.loginWindow = fs.ui.createLoginWindow();
	fs.ui.loginWindow.open();
}