From 0ecba231f37a76255333cc9846bcd5b392394ce0 Mon Sep 17 00:00:00 2001 From: Marek Suscak Date: Tue, 29 Sep 2020 09:26:08 +0200 Subject: [PATCH] fix(gatsby-plugin-google-tagmanager): Add "aria-hidden" (#27062) --- .../src/__tests__/__snapshots__/gatsby-ssr.js.snap | 2 +- packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap b/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap index a3ecb72dd539b..3f0e6c3811180 100644 --- a/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap +++ b/packages/gatsby-plugin-google-tagmanager/src/__tests__/__snapshots__/gatsby-ssr.js.snap @@ -8,4 +8,4 @@ exports[`gatsby-plugin-google-tagmanager defaultDatalayer should add a static ob exports[`gatsby-plugin-google-tagmanager should load gtm 1`] = `"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl+'';f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer', 'undefined');"`; -exports[`gatsby-plugin-google-tagmanager should load gtm 2`] = `""`; +exports[`gatsby-plugin-google-tagmanager should load gtm 2`] = `""`; diff --git a/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js b/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js index aaffb352d2e40..c79e5f11cb38d 100644 --- a/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js +++ b/packages/gatsby-plugin-google-tagmanager/src/gatsby-ssr.js @@ -9,7 +9,7 @@ const generateGTM = ({ id, environmentParamStr, dataLayerName }) => stripIndent` })(window,document,'script','${dataLayerName}', '${id}');` const generateGTMIframe = ({ id, environmentParamStr }) => - oneLine`` + oneLine`` const generateDefaultDataLayer = (dataLayer, reporter, dataLayerName) => { let result = `window.${dataLayerName} = window.${dataLayerName} || [];`