Skip to content

Commit

Permalink
[src,util] 1.2.0 ~> 1.2.1 Fix initial pathname normaliztion
Browse files Browse the repository at this point in the history
  • Loading branch information
rumkin committed Apr 24, 2019
1 parent 8da4cc3 commit 68b27cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pill",
"description": "Pill dynamic content loading for static sites.",
"version": "1.2.0",
"version": "1.2.1",
"main": "dist/node/pill.js",
"devDependencies": {
"babel-minify": "^0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/pill.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function pill(selector, options) {
var url = new URL(document.location)
var page = createPage(document.title, element.innerHTML, 200)
var pages = {}
pages[url.pathname] = page
pages[normalizePathname(url.pathname)] = page
function render (url, page, push) {
updateState(null, url, page.title, push)
setContent(element, page)
Expand Down

0 comments on commit 68b27cd

Please sign in to comment.