mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
Restricted the banner from showing on unsupported browsers
This commit is contained in:
@@ -7,10 +7,14 @@ const fxPromo = require('../templates/fxPromo');
|
|||||||
|
|
||||||
const app = choo();
|
const app = choo();
|
||||||
|
|
||||||
|
function showBanner(state) {
|
||||||
|
return state.promo && !state.route.startsWith('/unsupported/');
|
||||||
|
}
|
||||||
|
|
||||||
function body(template) {
|
function body(template) {
|
||||||
return function(state, emit) {
|
return function(state, emit) {
|
||||||
const b = html`<body>
|
const b = html`<body>
|
||||||
${state.promo ? fxPromo(state, emit) : ''}
|
${showBanner(state) ? fxPromo(state, emit) : ''}
|
||||||
${header(state)}
|
${header(state)}
|
||||||
<div class="all">
|
<div class="all">
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|||||||
Reference in New Issue
Block a user