diff --git a/assets/scripts/app/auth.coffee b/assets/scripts/app/auth.coffee index 43b88517..613c44d7 100644 --- a/assets/scripts/app/auth.coffee +++ b/assets/scripts/app/auth.coffee @@ -109,7 +109,7 @@ window.Auth = Ember.Object.extend expectedOrigin: -> endpoint = @get('endpoint') - if endpoint[0] == '/' then @receivingEnd else endpoint + if endpoint[0] == '/' then @receivingEnd else endpoint.match(/^https?:\/\/[^\/]*/)[0] sendToApp: (name) -> # TODO: this is an ugly solution, we need to do one of 2 things: