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.
1 parent dfe47cf commit 6076636Copy full SHA for 6076636
1 file changed
src/core/modules/router/router-class.js
@@ -789,9 +789,13 @@ class Router extends Framework7Class {
789
}
790
791
router.xhrAbortController = new AbortController();
792
+ const options = {
793
+ method: 'GET',
794
+ signal: router.xhrAbortController.signal,
795
+ };
796
+ router.emit('routerAjaxStart', options);
797
let fetchRes;
- fetch(url, { signal: router.xhrAbortController.signal, method: 'GET' })
- .then((res) => {
798
+ fetch(url, options).then(res => {
799
fetchRes = res;
800
return res.text();
801
})
0 commit comments