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

Ti.API.info("Running the app - app.js");

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

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