Skip to content

Commit

Permalink
Switch back to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan19 committed Sep 19, 2024
1 parent c1ccaba commit 97c79ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/gallery/TagUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export enum Rating {
}

export type FilterMode = -1 | 0 | 1;
// @ts-ignore
const images: ImageInformation[] = (await loadImageInfo())[0];
export const artists = Array.from(new Set(images.filter(value => value.artist !== undefined && value.artist !== '').map<string>(imageData => imageData.artist as string))).sort((a, b) => a.localeCompare(b));
export const characters = Array.from(new Set(images.filter(value => value.characters !== undefined).flatMap<string>(imageData => imageData.characters))).sort((a, b) => a.localeCompare(b));
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2017",
"target": "es5",
"lib": [
"dom",
"dom.iterable",
Expand Down

0 comments on commit 97c79ab

Please sign in to comment.