Skip to content

Commit 40dc461

Browse files
cytopiahurrtz
andauthored
Update src/apis.ts
Co-authored-by: Tobias Winkler <[email protected]>
1 parent 5a6e5ef commit 40dc461

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/apis.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const isProduction = process.env.NODE_ENV === 'production';
22
const mockPath = `${process.env.PUBLIC_URL}/__mocks__/apiRequests`;
33

4-
export const domain = window.location.hostname;
4+
const {
5+
location: { hostname: domain },
6+
} = window;
57

68
export const getAppData = isProduction
79
? `//${domain}/get-app-data.php`

0 commit comments

Comments
 (0)