tangled
alpha
login
or
join now
flo-bit.dev
/
blento
21
fork
atom
your personal website on atproto - mirror
blento.app
21
fork
atom
overview
issues
pulls
pipelines
fix custom domain double https://
Florian
3 weeks ago
af540b6a
043df1e8
+4
-3
1 changed file
expand all
collapse all
unified
split
src
lib
website
CustomDomainModal.svelte
+4
-3
src/lib/website/CustomDomainModal.svelte
···
23
23
24
24
let step: 'current' | 'input' | 'instructions' | 'verifying' | 'removing' | 'success' | 'error' =
25
25
$state('input');
26
26
-
let domain = $state('');
26
26
+
let rawDomain = $state('');
27
27
+
let domain = $derived(rawDomain.replace(/^https?:\/\//, '').replace(/\/+$/, ''));
27
28
let errorMessage = $state('');
28
29
let errorHint = $state('');
29
30
···
32
33
step = currentDomain ? 'current' : 'input';
33
34
} else {
34
35
step = 'input';
35
35
-
domain = '';
36
36
+
rawDomain = '';
36
37
errorMessage = '';
37
38
errorHint = '';
38
39
}
···
157
158
Custom Domain
158
159
</h3>
159
160
160
160
-
<Input type="text" bind:value={domain} placeholder="mydomain.com" />
161
161
+
<Input type="text" bind:value={rawDomain} placeholder="mydomain.com" />
161
162
162
163
<div class="mt-4 flex gap-2">
163
164
<Button variant="ghost" onclick={() => customDomainModalState.hide()}>Cancel</Button>