background-store.ts 282 B

1234567891011
  1. /** Uploaded-background registry — shares the `background` fragment with the table file. */
  2. let backgrounds: string[] = [];
  3. export function addBackground(url: string): void {
  4. backgrounds.push(url);
  5. }
  6. export function listBackgrounds(): string[] {
  7. return [...backgrounds];
  8. }