From ad5de0e93ac2fd4ddd66696897798069cae3f8cd Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 18 Feb 2015 22:25:58 +0000 Subject: [PATCH] added null check on Facebook --- services/web/app/views/referal/bonus.jade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/referal/bonus.jade b/services/web/app/views/referal/bonus.jade index 6c83c67967..5b0183d9c1 100644 --- a/services/web/app/views/referal/bonus.jade +++ b/services/web/app/views/referal/bonus.jade @@ -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").