Fix deprecation.
parent
cad0003676
commit
a69cdf761b
|
@ -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}`);
|
||||||
|
|
Loading…
Reference in New Issue