Store Cognito base url solely in api.php
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user