mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix exception when viewing deviceCode page
This commit is contained in:
parent
153873e034
commit
d05a68c470
@ -221,10 +221,14 @@ export function interceptHttpRequests() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Ignore domains
|
// Ignore domains
|
||||||
|
try {
|
||||||
const domain = (new URL(url)).hostname;
|
const domain = (new URL(url)).hostname;
|
||||||
if (IGNORED_DOMAINS.includes(domain)) {
|
if (IGNORED_DOMAINS.includes(domain)) {
|
||||||
return NATIVE_FETCH(request, init);
|
return NATIVE_FETCH(request, init);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
return NATIVE_FETCH(request, init);
|
||||||
|
}
|
||||||
|
|
||||||
// BxLogger.info('fetch', url);
|
// BxLogger.info('fetch', url);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user