Skip to content

Commit

Permalink
Merge pull request #129 from aroskanalen/feature/367-api-url-in-local…
Browse files Browse the repository at this point in the history
…storage

Slide Interaction - Calendar Instant Booking
  • Loading branch information
tuj authored Aug 19, 2024
2 parents 3ff6532 + 799154e commit 284db6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file.
- Winston logging to Pino logging
- Set infrastructure node version to 20.
- Fixed base path to /client.
- [#118](https://github.com/os2display/display-client/pull/118)
- Added api url to localstorage.

## [2.0.4] - 2024-08-14

Expand Down Expand Up @@ -44,7 +46,8 @@ All notable changes to this project will be documented in this file.

- [#119](https://github.com/os2display/display-client/pull/119)
- Changed to v2 routing.
- Limited the number of API calls by comparing relationsChecksum.
- [#117](https://github.com/os2display/display-client/pull/117)
- Limited the number of API calls by comparing relationsChecksum.

## [1.3.5] - 2023-09-14

Expand Down
3 changes: 3 additions & 0 deletions src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,9 @@ function App() {
const tenantKey = localStorage.getItem(localStorageKeys.TENANT_KEY);
const tenantId = localStorage.getItem(localStorageKeys.TENANT_ID);

// Make api endpoint available through localstorage.
localStorage.setItem(localStorageKeys.API_URL, config.apiEndpoint);

if (token && tenantKey && tenantId) {
// Get fallback image.
fetch(`${config.apiEndpoint}/v2/tenants/${tenantId}`, {
Expand Down
1 change: 1 addition & 0 deletions src/local-storage-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ const localStorageKeys = {
TENANT_ID: 'tenantId',
REFRESH_TOKEN: 'refreshToken',
FALLBACK_IMAGE: 'fallbackImage',
API_URL: 'apiUrl',
};
export default localStorageKeys;

0 comments on commit 284db6a

Please sign in to comment.