formatting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiBaseUrl } from '../app.config.js';
|
||||
import { apiBaseUrl } from "../app.config.js";
|
||||
|
||||
export function getAuthKeyFromProperties(props) {
|
||||
var authKey;
|
||||
@@ -28,12 +28,9 @@ export function getTenantProperty(key, props) {
|
||||
|
||||
var authKey = getAuthKeyFromProperties(props);
|
||||
console.log(`Fetching TPS Property [${key}]`);
|
||||
fetch(
|
||||
`${apiBaseUrl}/tps?propertyName=${key}&authKey=${authKey}`,
|
||||
{
|
||||
credentials: "include", // fetch won't send cookies unless you set credentials
|
||||
}
|
||||
)
|
||||
fetch(`${apiBaseUrl}/tps?propertyName=${key}&authKey=${authKey}`, {
|
||||
credentials: "include", // fetch won't send cookies unless you set credentials
|
||||
})
|
||||
.then((response) => {
|
||||
// check for error response
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user