Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions client/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ head
if canon_url
link(rel="canonical", href=canon_url)

if !noscript && process.env.NOSCRIPT_REDIR
noscript: meta(http-equiv='refresh', content="0; url='?nojs'")
if !noscript
noscript
if process.env.NOSCRIPT_REDIR
meta(http-equiv='refresh', content="0; url='?nojs'")
else
style.
.nojs-shim { padding: 15vh 24px; text-align: center }

base(href=process.env.BASE_HREF || '/')

Expand All @@ -43,5 +48,10 @@ body(lang=lang, dir=dir)
}

if !noscript
if !process.env.NOSCRIPT_REDIR
noscript
.nojs-shim
p This block explorer needs JavaScript to run. Please enable it and reload the page.

script(src=staticRoot+'app.js', async)
!= process.env.FOOT_HTML
3 changes: 2 additions & 1 deletion flavors/blockstream/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export ONION_V3="http://explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid
export CUSTOM_ASSETS="$CUSTOM_ASSETS flavors/blockstream/www/*"
export CUSTOM_CSS="$CUSTOM_CSS flavors/blockstream/extras.css"

export NOSCRIPT_REDIR=1
# show a "needs JavaScript" message instead of redirecting to the prerenderer
export NOSCRIPT_REDIR=

export NAVBAR_HTML=1

Expand Down
Loading