@symbo.ls/create 2.10.225 → 2.10.226

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/router.js +2 -5
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.10.225",
3
+ "version": "2.10.226",
4
4
  "license": "MIT",
5
- "gitHead": "ab9664d8dfad6716978095254e3e3526f8cad696",
5
+ "gitHead": "e00b07cb7ba8e144f98dec2d296a231987478c08",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "dependencies": {
package/router.js CHANGED
@@ -41,11 +41,8 @@ export const popStateRouter = (root, options) => {
41
41
  const routerOptions = options.routerOptions || DEFAULT_ROUTING_OPTIONS
42
42
  if (!routerOptions.popState) return
43
43
  const router = options.snippets && options.snippets.router || defaultRouter
44
- console.log(router)
45
- // window.onpopstate = e => router(root, window.location.pathname, {}, 0, false)
46
- window.onpopstate = e => router(root, window.location.pathname, {
47
- pushState: false, level: 0
48
- })
44
+ const pathname = window.location.pathname
45
+ window.onpopstate = e => router(root, pathname, { pushState: false, level: 0 })
49
46
  }
50
47
 
51
48
  export const injectRouterInLinkComponent = (routerOptions) => {