Fix for incorrect report.json URL in cloud

This commit is contained in:
jpellizzari
2017-03-27 12:31:34 -07:00
parent 32988c06d2
commit bdea399a5a

View File

@@ -20,6 +20,9 @@ class DebugMenu extends React.Component {
}
render() {
const reportDownloadUrl = process.env.WEAVE_CLOUD
? `${window.location.origin}/api${window.location.pathname}/api/report`
: 'api/report';
return (
<div className="troubleshooting-menu-wrapper">
<div className="troubleshooting-menu">
@@ -28,7 +31,7 @@ class DebugMenu extends React.Component {
<div className="troubleshooting-menu-item">
<a
className="footer-icon"
href="api/report"
href={reportDownloadUrl}
download
title="Save raw data as JSON"
>