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
|
@ -14,7 +14,7 @@ quayRun.$inject = [
|
|||
'$anchorScroll',
|
||||
'UtilService',
|
||||
'MetaService',
|
||||
'CONFIG',
|
||||
'INJECTED_CONFIG',
|
||||
];
|
||||
|
||||
export default function quayRun(
|
||||
|
@ -30,8 +30,8 @@ export default function quayRun(
|
|||
$anchorScroll,
|
||||
UtilService,
|
||||
MetaService,
|
||||
CONFIG) {
|
||||
var defaultTitle = CONFIG['REGISTRY_TITLE'] || 'Quay Container Registry';
|
||||
INJECTED_CONFIG) {
|
||||
var defaultTitle = INJECTED_CONFIG['REGISTRY_TITLE'] || 'Quay Container Registry';
|
||||
|
||||
// Handle session security.
|
||||
Restangular.setDefaultRequestParams(['post', 'put', 'remove', 'delete'], {'_csrf_token': (<any>window).__token || ''});
|
||||
|
|
Reference in a new issue