@webqit/webflo 0.8.60 → 0.8.63
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
|
@@ -146,15 +146,17 @@ export default function(layout, params) {
|
|
|
146
146
|
|
|
147
147
|
if (/*document.activeElement === document.body && */event && _isObject(event.detail) && (event.detail.src instanceof Element) && /* do only on url path change */ _before(event.value, '?') !== _before(event.oldValue, '?')) {
|
|
148
148
|
setTimeout(() => {
|
|
149
|
-
|
|
149
|
+
let vieportTop;
|
|
150
150
|
if (clientNavigationEvent.url.hash && (urlTarget = document.querySelector(clientNavigationEvent.url.hash))) {
|
|
151
|
-
urlTarget.scrollIntoView(
|
|
151
|
+
urlTarget.scrollIntoView();
|
|
152
|
+
} else if (vieportTop = Array.from(document.querySelectorAll('[data-viewport-top]')).pop()) {
|
|
153
|
+
vieportTop.focus();
|
|
152
154
|
} else {
|
|
153
155
|
document.documentElement.classList.add('scroll-reset');
|
|
154
|
-
|
|
156
|
+
document.body.scrollIntoView();
|
|
155
157
|
setTimeout(() => {
|
|
156
158
|
document.documentElement.classList.remove('scroll-reset');
|
|
157
|
-
},
|
|
159
|
+
}, 600);
|
|
158
160
|
}
|
|
159
161
|
}, 0);
|
|
160
162
|
}
|
|
@@ -165,7 +165,7 @@ export default function(layout, params) {
|
|
|
165
165
|
method: request.method,
|
|
166
166
|
headers: request.headers,
|
|
167
167
|
body: request.body,
|
|
168
|
-
mode: request.mode,
|
|
168
|
+
mode: request.mode === 'navigate' ? null : request.mode,
|
|
169
169
|
credentials: request.credentials,
|
|
170
170
|
cache: request.cache,
|
|
171
171
|
redirect: request.redirect,
|
|
@@ -410,7 +410,7 @@ export async function run(instanceSetup, hostSetup, request, response, Ui, flags
|
|
|
410
410
|
// Serialize rendering?
|
|
411
411
|
// --------
|
|
412
412
|
if (_isObject(rendering) && rendering.document) {
|
|
413
|
-
await _delay(
|
|
413
|
+
await _delay(2000);
|
|
414
414
|
rendering = rendering.print();
|
|
415
415
|
}
|
|
416
416
|
if (!_isString(rendering)) throw new Error('render() must return a window object or a string response.')
|