refactor: simplify extension conversions

This commit is contained in:
Peter Steinberger
2026-04-11 01:37:23 +01:00
parent 780e0898b0
commit 3e80bd33e4
19 changed files with 32 additions and 37 deletions

View File

@@ -575,7 +575,7 @@ export function installBrowserControlServerHooks() {
vi.stubGlobal(
"fetch",
vi.fn(async (url: string, init?: RequestInit) => {
const u = String(url);
const u = url;
if (u.includes("/json/list")) {
if (!state.reachable) {
return makeResponse([]);

View File

@@ -53,7 +53,7 @@ describe("profile CRUD endpoints", () => {
vi.stubGlobal(
"fetch",
vi.fn(async (url: string) => {
const u = String(url);
const u = url;
if (u.includes("/json/list")) {
return makeResponse([]);
}