File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 14
14
import { env } from ' $env/dynamic/public' ;
15
15
import type { PageData } from ' ./$types' ;
16
16
import { DHMToSeconds , secondsToDHM } from ' $lib/utils/time' ;
17
- import { PUBLIC_ANONYMOUS_PASTES_ENABLED } from ' $env/static/public' ;
18
17
19
18
export let data: PageData ;
20
19
204
203
class:hidden ={content }
205
204
bind:this ={placeholderRef }
206
205
>
207
- {#if PUBLIC_ANONYMOUS_PASTES_ENABLED === ' false' && ! data .loggedIn }
206
+ {#if env . PUBLIC_ANONYMOUS_PASTES_ENABLED === ' false' && ! data .loggedIn }
208
207
Anonymous pastes are disabled on this server. <br />
209
208
You need to login to save pastes.
210
209
{:else }
222
221
<div class =" flex flex-col items-center gap-4" >
223
222
<h1 class =" text-4xl mb-5 max-sm:hidden" ><a href =" /" >YABin</a ></h1 >
224
223
225
- {#if PUBLIC_ANONYMOUS_PASTES_ENABLED === ' false' && ! data .loggedIn }
224
+ {#if env . PUBLIC_ANONYMOUS_PASTES_ENABLED === ' false' && ! data .loggedIn }
226
225
<button
227
226
class =" bg-amber-500 text-black text-lg px-4 py-1 my-1 w-full max-sm:hidden"
228
227
title =" {cmdKey }+S"
You can’t perform that action at this time.
0 commit comments