mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
added null check on Facebook
This commit is contained in:
@@ -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").
|
||||
|
||||
Reference in New Issue
Block a user