Adds truthness check b4 accessing property in facebook package. Fixes #7255

This commit is contained in:
Workflow
2016-06-19 22:30:25 +08:00
parent 9897092a7c
commit 654939e092

View File

@@ -37,7 +37,7 @@ Facebook.requestCredential = function (options, credentialRequestCompleteCallbac
'&state=' + OAuth._stateParam(loginStyle, credentialToken, options && options.redirectUrl);
// Handle authentication type (e.g. for force login you need authType: "reauthenticate")
if (options.authType) {
if (options && options.authType) {
loginUrl += "&authType=" + encodeURIComponent(options.authType);
}