Skip to content

Commit

Permalink
fix: add 'is_ssr' flag to noscript, wait until SSR is in place before…
Browse files Browse the repository at this point in the history
… using
  • Loading branch information
Daniel Morse committed Feb 20, 2019
1 parent 4006913 commit 2049a70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/bolt-image/src/image.js
Expand Up @@ -172,7 +172,8 @@ class BoltImage extends withLitHtml() {

// Include <noscript> for server-side rendered components
const fallbackImageElement = () => {
if (lazyload && src) {
// this.is_ssr is undefined at the moment, placeholder for future server-side rendering
if (lazyload && src && this.is_ssr) {
return html`
<noscript>
<img
Expand Down

0 comments on commit 2049a70

Please sign in to comment.