Skip to content

Commit

Permalink
Ok, added toString() to env var
Browse files Browse the repository at this point in the history
* Fixed based on this ticket: facebook/create-react-app#5473
  • Loading branch information
jefffriesen committed Nov 17, 2018
1 parent caccde4 commit 954b17f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Microgrid Appliance Analysis</title>
<script type="text/javascript">
console.log('environment:', '%NODE_ENV%',
'%NODE_ENV%' === 'production',
'%NODE_ENV%'.toString() === 'production'
);
</script>
<script type="text/javascript">
if ('%NODE_ENV%' === 'production') {
if ('%NODE_ENV%'.toString() === 'production') {
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
heap.load("3292425535");
}
</script>
<title>Microgrid Appliance Analysis</title>
</head>
<body>
<noscript>
Expand Down

0 comments on commit 954b17f

Please sign in to comment.