summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErnst Widerberg <ernst@sunet.se>2022-01-27 16:24:09 +0100
committerErnst Widerberg <ernst@sunet.se>2022-01-27 16:24:09 +0100
commit1c0c47e36b4e3ef47eb68464b7b800be3e4ceba6 (patch)
treeaae472fb9432a991a02eff1af29e0599fdfc80b0 /src
parent05ef26253195a9c4a4f4f41d57dab1eb8fe2a06d (diff)
Format src/* with prettier
Diffstat (limited to 'src')
-rw-r--r--src/components/List.js13
-rw-r--r--src/index.html4
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>