Permalink
Browse files

Removed a hardcoding, left by mistake

  • Loading branch information...
1 parent 8f2b48c commit 0a14a0264e17b5cef04c72f27f0cb4dddbb78b38 @rohitggarg rohitggarg committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/facebook_share_widget/facebook_friend.js.coffee
@@ -34,7 +34,7 @@ $ ->
friend = this
data = $.extend({}, $.parseJSON(template))
data.facebook_id = @id
- redirect_uri = 'http://rohitggarg.dyndns.org:3000/widget/facebook/share-redirect?facebook_id='+data.facebook_id+'&link='+data.link
+ redirect_uri = window.location.protocol + '//' + window.location.host + '/widget/facebook/share-redirect?facebook_id='+data.facebook_id+'&link='+data.link
window.open @url.replace('{app_id}', data.appId).replace('{to}', data.facebook_id).replace('{link}', encodeURIComponent(data.link)).replace('{redirect_uri}',encodeURIComponent(redirect_uri)), 'sharer', 'toolbar=0,status=0,width=1000,height=600'

0 comments on commit 0a14a02

Please sign in to comment.