mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:32:48 +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) {
|
function callback(response) {
|
||||||
// document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
|
// document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
|
||||||
}
|
}
|
||||||
|
if (typeof FB !== "undefined" && FB !== null) {
|
||||||
FB.ui(obj, callback);
|
FB.ui(obj, callback);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
|
Loading…
Reference in a new issue