diff options
| author | mat <github@matdoes.dev> | 2022-03-19 15:42:03 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-03-19 15:42:03 -0500 |
| commit | adc2cd0d0f006776ccb982a19a98934cd8855132 (patch) | |
| tree | 8f371a5107bb1990980319f03593a7ab4368f081 /src/routes/profile | |
| parent | 924e43c2ad9151eaaa2685cb6dc5ced5dccf1c40 (diff) | |
| download | skyblock-stats-adc2cd0d0f006776ccb982a19a98934cd8855132.tar.gz skyblock-stats-adc2cd0d0f006776ccb982a19a98934cd8855132.tar.bz2 skyblock-stats-adc2cd0d0f006776ccb982a19a98934cd8855132.zip | |
Add random backgrounds for players based on UUID
Diffstat (limited to 'src/routes/profile')
| -rw-r--r-- | src/routes/profile/index.svelte | 1 | ||||
| -rw-r--r-- | src/routes/profile/update.ts | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/profile/index.svelte b/src/routes/profile/index.svelte index cdcd495..a69afc5 100644 --- a/src/routes/profile/index.svelte +++ b/src/routes/profile/index.svelte @@ -170,6 +170,7 @@ class="selectable-background-option" class:selected={thisBackgroundName === backgroundName} style="background-image: url(/backgrounds-small/{thisBackgroundName})" + title={thisBackgroundName} on:click={() => (backgroundName = thisBackgroundName)} /> {/each} diff --git a/src/routes/profile/update.ts b/src/routes/profile/update.ts index 8eb108c..7946597 100644 --- a/src/routes/profile/update.ts +++ b/src/routes/profile/update.ts @@ -5,7 +5,7 @@ import backgroundFileNames from '../../_backgrounds.json' import donators from '../../_donators.json' import admins from '../../_admins.json' import type { JSONValue } from '@sveltejs/kit/types/internal' -import env from '../../env' +import env from '$lib/env' const emojiRegex = /^(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/ |
