gatsby-plugin-amp
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -41,3 +41,3 @@ "use strict"; | ||
const postBodyComponents = getPostBodyComponents(); | ||
const isAmp = pathname.indexOf(pathIdentifier) > -1; | ||
const isAmp = pathname && pathname.indexOf(pathIdentifier) > -1; | ||
@@ -271,3 +271,3 @@ if (isAmp) { | ||
if (image.src.indexOf(".gif") > -1) { | ||
if (image.src && image.src.indexOf(".gif") > -1) { | ||
ampImage = document.createElement("amp-anim"); | ||
@@ -286,3 +286,3 @@ headComponents.push("amp-anim"); | ||
Object.keys(defaults.image).forEach(key => { | ||
if (includedAttributes.indexOf(key) === -1) { | ||
if (includedAttributes && includedAttributes.indexOf(key) === -1) { | ||
ampImage.setAttribute(key, defaults.image[key]); | ||
@@ -289,0 +289,0 @@ } |
{ | ||
"name": "gatsby-plugin-amp", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "A gatsby plugin for scaffolding AMP pages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19240