Restricted the banner from showing on unsupported browsers
This commit is contained in:
parent
50ba8bec5a
commit
6489ab6a56
@ -7,10 +7,14 @@ const fxPromo = require('../templates/fxPromo');
|
||||
|
||||
const app = choo();
|
||||
|
||||
function showBanner(state) {
|
||||
return state.promo && !state.route.startsWith('/unsupported/');
|
||||
}
|
||||
|
||||
function body(template) {
|
||||
return function(state, emit) {
|
||||
const b = html`<body>
|
||||
${state.promo ? fxPromo(state, emit) : ''}
|
||||
${showBanner(state) ? fxPromo(state, emit) : ''}
|
||||
${header(state)}
|
||||
<div class="all">
|
||||
<noscript>
|
||||
|
Loading…
Reference in New Issue
Block a user