mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 02:41:09 +00:00
added null check on Facebook
This commit is contained in:
parent
5d09999da5
commit
ad5de0e93a
1 changed files with 3 additions and 2 deletions
|
@ -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").
|
||||
|
|
Loading…
Reference in a new issue