Skip to content

Commit 9e68aea

Browse files
Serhii Prykhozhyiphilippem
authored andcommitted
add the page title and STATIC_ROOT to static file path
1 parent 1fbe841 commit 9e68aea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/src/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ export default function main({ DOM, HTTP, route, storage, scanner: scan$, search
244244

245245
// Page title
246246
, title$ = O.merge(page$.mapTo(null)
247+
, goLanding$.withLatestFrom(t$, (_, t) => t`Explorer API`)
247248
, block$.filter(notNully).withLatestFrom(t$, (block, t) => t`Block #${block.height}: ${block.id}`)
248249
, tx$.filter(notNully).withLatestFrom(t$, (tx, t) => t`Transaction: ${tx.txid}`)
249250
, addr$.filter(notNully).withLatestFrom(goAddr$, t$, (_, goAddr, t) => t`Address: ${goAddr.display_addr}`)

client/src/views/lander.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const staticRoot = process.env.STATIC_ROOT || ''
55

66
const LandingPage = ({ t, ...S }) => layout(
77
<div className="landing-page">
8-
<script src="/js/infinite-scroll.js" async></script>
8+
<script src={`${staticRoot}/js/infinite-scroll.js`} async></script>
99
<div className="blur-orange"></div>
1010
<div className="blur-green"></div>
1111
<div className="laser-lines"></div>

0 commit comments

Comments
 (0)