@lexriver/dome 1.5.2 → 1.5.3
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.
- package/out/DomeRouter.js +2 -1
- package/package.json +1 -1
- package/src/DomeRouter.ts +2 -1
package/out/DomeRouter.js
CHANGED
|
@@ -8,8 +8,9 @@ export var DomeRouter;
|
|
|
8
8
|
let onNotFoundAction = undefined;
|
|
9
9
|
window.addEventListener('popstate', async (e) => {
|
|
10
10
|
// on go back
|
|
11
|
-
|
|
11
|
+
console.log(filename, 'window.popstate event', e, 'historyUrls=', historyUrls);
|
|
12
12
|
const url = window.location.pathname;
|
|
13
|
+
addUrlToHistory(url);
|
|
13
14
|
await executeAsync(url, getScrollPositionForUrl(url));
|
|
14
15
|
// await DomeManipulator.scrollToAsync({
|
|
15
16
|
// pxFromTop: getScrollPositionForUrl(window.location.pathname)
|
package/package.json
CHANGED
package/src/DomeRouter.ts
CHANGED
|
@@ -27,8 +27,9 @@ export module DomeRouter {
|
|
|
27
27
|
|
|
28
28
|
window.addEventListener('popstate', async (e) => {
|
|
29
29
|
// on go back
|
|
30
|
-
|
|
30
|
+
console.log(filename, 'window.popstate event', e, 'historyUrls=', historyUrls)
|
|
31
31
|
const url = window.location.pathname
|
|
32
|
+
addUrlToHistory(url)
|
|
32
33
|
await executeAsync(url, getScrollPositionForUrl(url) )
|
|
33
34
|
// await DomeManipulator.scrollToAsync({
|
|
34
35
|
// pxFromTop: getScrollPositionForUrl(window.location.pathname)
|