diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 386e762..47ef7b3 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -128,8 +128,8 @@ function isWaitingToPayInvoice(record) { // @challenge "L402 macaroon=X invoice=Y" function getToken(challenge: string) { const tokens = challenge.split(' '); - const macaroon = tokens[1].split('=')[1]; - const invoice = tokens[2].split('=')[1]; + const macaroon = tokens[1].replace('macaroon=', ''); + const invoice = tokens[2].replace('invoice=',''); return { macaroon, invoice diff --git a/src/routes/articles/[slug]/+page.svelte b/src/routes/articles/[slug]/+page.svelte index 02bf7c0..54d3afc 100644 --- a/src/routes/articles/[slug]/+page.svelte +++ b/src/routes/articles/[slug]/+page.svelte @@ -128,7 +128,7 @@ .paywall { text-align: center; margin: 2rem 0; - padding: 1.5rem; + padding: 1.5rem 0; background-color: silver; filter: drop-shadow(0 1rem 0.75rem black); }