{"action":"opened","issue":{"url":"https://api.github.com/repos/woocommerce/storefront/issues/506","repository_url":"https://api.github.com/repos/woocommerce/storefront","labels_url":"https://api.github.com/repos/woocommerce/storefront/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/storefront/issues/506/comments","events_url":"https://api.github.com/repos/woocommerce/storefront/issues/506/events","html_url":"https://github.com/woocommerce/storefront/issues/506","id":188740129,"number":506,"title":"Storefront website without header card is displaying JavaScript error","user":{"login":"nandotess","id":804109,"avatar_url":"https://avatars.githubusercontent.com/u/804109?v=3","gravatar_id":"","url":"https://api.github.com/users/nandotess","html_url":"https://github.com/nandotess","followers_url":"https://api.github.com/users/nandotess/followers","following_url":"https://api.github.com/users/nandotess/following{/other_user}","gists_url":"https://api.github.com/users/nandotess/gists{/gist_id}","starred_url":"https://api.github.com/users/nandotess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandotess/subscriptions","organizations_url":"https://api.github.com/users/nandotess/orgs","repos_url":"https://api.github.com/users/nandotess/repos","events_url":"https://api.github.com/users/nandotess/events{/privacy}","received_events_url":"https://api.github.com/users/nandotess/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-11T11:26:48Z","updated_at":"2016-11-11T11:26:48Z","closed_at":null,"body":"Storefront version: **2.1.5**\r\n\r\nFile: `/storefront/assets/js/woocommerce/header-cart.min.js`\r\n\r\nJavaScript error: `header-cart.min.js:1 Uncaught TypeError: Cannot read property 'addEventListener' of null`\r\n\r\nI guess the issue is related with `var a=document.querySelector(\".site-header-cart\");`. Our client website hasn't the cart on header.\r\n\r\nIt's possible to test if the HTML tag exists before use it?\r\n\r\nThank you very much guys for your hard work."}}
{"actor":{"display_login":"nandotess"}}