trailhead promo

This commit is contained in:
Danny Coates 2019-05-29 19:22:03 -07:00
parent 2682aec90d
commit d3e9bb09df
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 6 additions and 11 deletions

View file

@ -8,9 +8,7 @@ function banner(state) {
return; // server side
}
const show =
!state.capabilities.standalone &&
!/firefox/i.test(navigator.userAgent) &&
!state.route.startsWith('/unsupported/');
!state.capabilities.standalone && !state.route.startsWith('/unsupported/');
if (show) {
return state.cache(Promo, 'promo').render();
}