@webqit/webflo 1.0.11 → 1.0.12

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/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "1.0.11",
15
+ "version": "1.0.12",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -105,13 +105,13 @@ export class WebfloRootClient1 extends WebfloClient {
105
105
  const undoControl = super.controlClassic((newHref) => {
106
106
  try {
107
107
  // Save current scroll position
108
- this.host.history.replaceState({
108
+ window.history.replaceState({
109
109
  ...(this.currentEntry()?.getState?.() || {}),
110
110
  scrollPosition: this.host === window.document ? [window.scrollX, window.scrollY] : [this.host.scrollLeft, this.host.scrollTop,],
111
111
  }, '', this.location.href);
112
112
  } catch (e) { }
113
113
  // Do actual location update
114
- try { this.host.history.pushState({}, '', newHref); } catch (e) { }
114
+ try { window.history.pushState({}, '', newHref); } catch (e) { }
115
115
  });
116
116
  // ONPOPSTATE
117
117
  const popstateHandler = (e) => {