renamed properties placed on the window object to INJECTED_<property>

This commit is contained in:
alecmerdler 2017-01-23 12:34:22 -08:00
parent 64a4b68216
commit 6b2222a3ec
6 changed files with 37 additions and 27 deletions

View file

@ -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 || ''});