Skip to content

Commit

Permalink
reverted location overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mann committed May 7, 2015
1 parent aa34746 commit ca5bcd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions app/js/api/cypress/location.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,13 @@ $Cypress.Location = do ($Cypress, _, Uri) ->
## let our function know we've navigated
navigated()

_.each ["hash", "host", "hostname", "origin", "pathname", "port", "protocol", "search"], (attr) ->
try
Object.defineProperty win.location, attr, {
get: ->
location(attr)
}
# _.each ["hash", "host", "hostname", "origin", "pathname", "port", "protocol", "search"], (attr) ->
# try
# Object.defineProperty win.location, attr, {
# get: ->
# location(attr)

# }

## think about moving this method out of Cypress
## and into our app, since it kind of leaks the
Expand Down
3 changes: 2 additions & 1 deletion lib/secret_sauce.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,8 @@ SecretSauce.RemoteInitial =

## reset the session to the latest redirected URL
@setSessionRemoteUrl(req, url)
rq.pipe(tr).pipe(thr)
rq.pipe(thr)
# rq.pipe(tr).pipe(thr)

## set the headers on the hyperquest request
## this will naturally forward cookies or auth tokens
Expand Down

0 comments on commit ca5bcd5

Please sign in to comment.