From 8a469e4943a8db8e92671d91f11c2e99b0474d9e Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Mon, 10 Feb 2014 11:54:19 -0600 Subject: [PATCH] VRFS-152 fixed sharing with FB auth in place --- web/app/assets/javascripts/invitationDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/assets/javascripts/invitationDialog.js b/web/app/assets/javascripts/invitationDialog.js index f337b690d..037a23591 100644 --- a/web/app/assets/javascripts/invitationDialog.js +++ b/web/app/assets/javascripts/invitationDialog.js @@ -179,6 +179,7 @@ var obj = { method: 'feed', link: signupUrl, + // link: signupUrl.replace(/localhost:3000/,'www.jamkazam.com'), picture: 'http://jamkazam.com/assets/logo.png', name: 'Join me on JamKazam', caption: 'Play live music in real-time sessions with others over the Internet, as if in the same room.', @@ -187,7 +188,7 @@ }; function fbFeedDialogCallback(response) { //console.log("feedback dialog closed: " + response['post_id']) - if (response['post_id']) { + if (response && response['post_id']) { context.JK.GA.trackServiceInvitations(context.JK.GA.InvitationTypes.facebook, 1); } }