From 0468b1e327e3dbfc8ad64a65ad832c2b2b8e608d Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Wed, 11 Sep 2013 00:34:38 +0200 Subject: [PATCH] remove path from endpoint --- assets/scripts/app/auth.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: