We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4199ed + 6076636 commit dede8e8Copy full SHA for dede8e8
1 file changed
src/core/modules/router/router-class.js
@@ -539,9 +539,13 @@ class Router extends Framework7Class {
539
}
540
541
router.xhrAbortController = new AbortController();
542
+ const options = {
543
+ method: 'GET',
544
+ signal: router.xhrAbortController.signal,
545
+ };
546
+ router.emit('routerAjaxStart', options);
547
let fetchRes;
- fetch(url, { signal: router.xhrAbortController.signal, method: 'GET' })
- .then((res) => {
548
+ fetch(url, options).then(res => {
549
fetchRes = res;
550
return res.text();
551
})
0 commit comments