Fix deprecation.

new-frontend
Icedream 2023-01-09 02:31:47 +01:00
parent cad0003676
commit a69cdf761b
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export async function fetchJson(
} }
} }
export function makeThumbnailURLSet( function legacyMakeThumbnailURLSet(
thumbnailServerURL: string, thumbnailServerURL: string,
id: string, id: string,
{ {
@ -94,7 +94,7 @@ export function makeThumbnailURLSet(
: hourglassImage, : hourglassImage,
}), {}); }), {});
} }
deprecate(makeThumbnailURLSet, 'makeThumbnailURLSet() is deprecated.'); export const makeThumbnailURLSet = deprecate(legacyMakeThumbnailURLSet, 'makeThumbnailURLSet() is deprecated.');
async function getDirect(relativeURL: string) { async function getDirect(relativeURL: string) {
return fetchJson(`${apiDirectURL}/${relativeURL}`); return fetchJson(`${apiDirectURL}/${relativeURL}`);