added null check on Facebook

This commit is contained in:
Henry Oswald 2015-02-18 22:25:58 +00:00
parent 5d09999da5
commit ad5de0e93a

View file

@ -143,8 +143,9 @@ block content
function callback(response) {
// document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
if (typeof FB !== "undefined" && FB !== null) {
FB.ui(obj, callback);
}
}
script(type="text/javascript").