Skip to content

Commit

Permalink
1.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Jan 22, 2018
1 parent a836980 commit 6f3fbb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "page",
"description": "Tiny client-side router",
"version": "1.8.1",
"version": "1.8.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions page.js
Expand Up @@ -722,8 +722,8 @@
*/
function getBase() {
if(!!base) return base;
var loc = pageWindow.location;
return (hashbang && loc.protocol === 'file:') ? loc.pathname : base;
var loc = hasWindow && pageWindow.location;
return (hasWindow && hashbang && loc.protocol === 'file:') ? loc.pathname : base;
}

page.sameOrigin = sameOrigin;
Expand Down

0 comments on commit 6f3fbb9

Please sign in to comment.