Fix exception when viewing deviceCode page

This commit is contained in:
redphx 2025-01-15 21:30:50 +07:00
parent 153873e034
commit d05a68c470

View File

@ -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);
}