Store Cognito base url solely in api.php

This commit is contained in:
2022-02-18 13:48:59 -05:00
parent 6a5c99e483
commit 78d3acb74c
4 changed files with 17 additions and 3 deletions

View File

@@ -1 +1,9 @@
export const baseUrl = 'https://forms.cognito.test';
declare const COGNITO_BASEURL: string;
let baseUrl: string;
if ( window.hasOwnProperty( 'COGNITO_BASEURL' ) )
baseUrl = COGNITO_BASEURL;
else
baseUrl = 'https://www.cognitoforms.com';
export { baseUrl };