remove path from endpoint
This commit is contained in:
parent
2aba520512
commit
0468b1e327
|
@ -109,7 +109,7 @@ window.Auth = Ember.Object.extend
|
||||||
|
|
||||||
expectedOrigin: ->
|
expectedOrigin: ->
|
||||||
endpoint = @get('endpoint')
|
endpoint = @get('endpoint')
|
||||||
if endpoint[0] == '/' then @receivingEnd else endpoint
|
if endpoint[0] == '/' then @receivingEnd else endpoint.match(/^https?:\/\/[^\/]*/)[0]
|
||||||
|
|
||||||
sendToApp: (name) ->
|
sendToApp: (name) ->
|
||||||
# TODO: this is an ugly solution, we need to do one of 2 things:
|
# TODO: this is an ugly solution, we need to do one of 2 things:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user