renamed properties placed on the window object to INJECTED_<property>
This commit is contained in:
parent
64a4b68216
commit
6b2222a3ec
6 changed files with 37 additions and 27 deletions
16
static/js/constants/injected-values.constant.ts
Normal file
16
static/js/constants/injected-values.constant.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Configuration data set.
|
||||
*/
|
||||
export const INJECTED_CONFIG: any = (<any>window).__config;
|
||||
|
||||
|
||||
/**
|
||||
* REST API route information.
|
||||
*/
|
||||
export const INJECTED_ENDPOINTS: any = (<any>window).__endpoints;
|
||||
|
||||
|
||||
/**
|
||||
* Features information.
|
||||
*/
|
||||
export const INJECTED_FEATURES: any = (<any>window).__features;
|
Reference in a new issue