Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
FIXED window.cookies fails with error [Closes #610]
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Sep 25, 2014
1 parent 71d66f4 commit 5e44f8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
## Version 2.0.3 2014-09-25

FIXED window.cookies fails with error [Closes #610]


## Version 2.0.2 2014-09-25

ADDED Only decode HTML documents, and support meta tag with charset
Expand Down
2 changes: 1 addition & 1 deletion src/zombie/window.coffee
Expand Up @@ -105,7 +105,7 @@ module.exports = ({ browser, params, encoding, history, method, name, opener, pa
# Add cookies, storage, alerts/confirm, XHR, WebSockets, JSON, Screen, etc
Object.defineProperty window, "cookies",
get: ->
return browser.cookies(@location.hostname, @location.pathname)
return browser.cookies.serialize(@location.hostname, @location.pathname)
browser._storages.extend(window)
browser._interact.extend(window)

Expand Down

0 comments on commit 5e44f8a

Please sign in to comment.