Skip to content

Commit

Permalink
Fix formatting after prettier update
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Jul 30, 2023
1 parent 647e95e commit 357dcfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/content/interceptors/ipVersioninterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class IpVersionInterceptor implements Interceptor {
method: "GET",
// @ts-ignore: URLPattern is not known to Typescript yet
urlPattern: new URLPattern(
"https://*.core.gssv-play-prod.xboxlive.com/v5/sessions/cloud/*/ice"
"https://*.core.gssv-play-prod.xboxlive.com/v5/sessions/cloud/*/ice",
),
};

Expand All @@ -22,7 +22,7 @@ class IpVersionInterceptor implements Interceptor {

public async intercept(
settings: Settings,
response: Response
response: Response,
): Promise<Response> {
if (!settings.ipVersion || settings.ipVersion.value == "default")
return response;
Expand All @@ -42,7 +42,7 @@ class IpVersionInterceptor implements Interceptor {
return (
this.getIpVersion(rtcIceCandidate.address) == settings.ipVersion.value
);
}
},
);

log("New ICE candidates:", newIceCandidates);
Expand Down
4 changes: 2 additions & 2 deletions src/content/interceptors/regionInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ class RegionInterceptor implements Interceptor {
method: "POST",
// @ts-ignore: URLPattern is not known to Typescript yet
urlPattern: new URLPattern(
"https://xgpuweb(f2p)?.gssv-play-prod.xboxlive.com/v2/login/user"
"https://xgpuweb(f2p)?.gssv-play-prod.xboxlive.com/v2/login/user",
),
};

public async intercept(
settings: Settings,
response: Response
response: Response,
): Promise<Response> {
if (!settings.region || settings.region.value == "default") return response;

Expand Down
4 changes: 2 additions & 2 deletions src/popup/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ document.querySelector("#settings").addEventListener("change", save);

async function save() {
const selects = document.querySelectorAll(
"#settings select"
"#settings select",
) as NodeListOf<HTMLSelectElement>;
const settings: { [id: string]: { value: string; text: string } } = {};

Expand All @@ -23,7 +23,7 @@ async function save() {
async function load() {
const settings = await chrome.storage.local.get();
const selects = document.querySelectorAll(
"#settings select"
"#settings select",
) as NodeListOf<HTMLSelectElement>;
for (const select of selects) {
select.value = settings[select.id]?.value ?? "default";
Expand Down

0 comments on commit 357dcfb

Please sign in to comment.