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