We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6e5ef commit 40dc461Copy full SHA for 40dc461
src/apis.ts
@@ -1,7 +1,9 @@
1
const isProduction = process.env.NODE_ENV === 'production';
2
const mockPath = `${process.env.PUBLIC_URL}/__mocks__/apiRequests`;
3
4
-export const domain = window.location.hostname;
+const {
5
+ location: { hostname: domain },
6
+} = window;
7
8
export const getAppData = isProduction
9
? `//${domain}/get-app-data.php`
0 commit comments