diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/List.js | 13 | ||||
| -rw-r--r-- | src/index.html | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/components/List.js b/src/components/List.js index 43a9b3c..cd60e4e 100644 --- a/src/components/List.js +++ b/src/components/List.js @@ -52,11 +52,16 @@ class List extends React.Component { // Fetch data from external source, update state getData() { - fetch(window.injectedEnv.COLLECTOR_URL + "/sc/v0/get?" + this.queryString(), { - headers: { - Authorization: "Bearer " + this.props.token + fetch( + window.injectedEnv.COLLECTOR_URL + + "/sc/v0/get?" + + this.queryString(), + { + headers: { + Authorization: "Bearer " + this.props.token + } } - }) + ) // TODO: Look at `status` or return code or both? .then(resp => { if (resp.status !== 200) diff --git a/src/index.html b/src/index.html index 451fc50..a2f8a83 100644 --- a/src/index.html +++ b/src/index.html @@ -6,8 +6,8 @@ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" - /> - <script type="module" src="./inject.js"></script> + /> + <script type="module" src="./inject.js"></script> <title>SOC Dashboard</title> </head> <body> |
