Check options exist on twitter package

This commit is contained in:
Pradel Léo
2016-06-23 11:29:26 +02:00
parent 4d21240f3b
commit e8783e95ac

View File

@@ -39,7 +39,7 @@ Twitter.requestCredential = function (options, credentialRequestCompleteCallback
}
// Handle force login (request the user to enter their credentials)
if (options.force_login) {
if (options && options.force_login) {
loginPath += "&force_login=true";
}