Skip to content

Commit

Permalink
Made window.location and location both work
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Apr 6, 2010
1 parent d6d4572 commit 4ac5638
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/browser/index.js
Expand Up @@ -54,7 +54,7 @@ exports.windowAugmentation = function(dom) {
Window.document.documentElement.appendChild(Window.document.createElement('body'));
Window.document.documentElement.style = {};
Window.document.documentElement.hasAttribute = true;

Window.location = { href: __filename };


return {
Expand All @@ -66,9 +66,7 @@ exports.windowAugmentation = function(dom) {
platform: process.platform,
appVersion: process.version
},
location: {
href: __filename
}
location: Window.location
};
};

Expand Down

0 comments on commit 4ac5638

Please sign in to comment.