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
|
@ -3,7 +3,7 @@ import * as Raven from 'raven-js';
|
|||
|
||||
quayConfig.$inject = [
|
||||
'$provide',
|
||||
'CONFIG',
|
||||
'INJECTED_CONFIG',
|
||||
'cfpLoadingBarProvider',
|
||||
'$tooltipProvider',
|
||||
'$compileProvider',
|
||||
|
@ -13,7 +13,7 @@ quayConfig.$inject = [
|
|||
|
||||
export function quayConfig(
|
||||
$provide,
|
||||
CONFIG,
|
||||
INJECTED_CONFIG,
|
||||
cfpLoadingBarProvider,
|
||||
$tooltipProvider,
|
||||
$compileProvider,
|
||||
|
@ -40,7 +40,7 @@ export function quayConfig(
|
|||
return tooltipFactory.apply(this, arguments);
|
||||
};
|
||||
|
||||
if (!CONFIG['DEBUG']) {
|
||||
if (!INJECTED_CONFIG['DEBUG']) {
|
||||
$compileProvider.debugInfoEnabled(false);
|
||||
}
|
||||
|
||||
|
@ -52,12 +52,12 @@ export function quayConfig(
|
|||
RestangularProvider.setBaseUrl('/api/v1/');
|
||||
|
||||
// Configure analytics.
|
||||
if (CONFIG && CONFIG.MIXPANEL_KEY) {
|
||||
if (INJECTED_CONFIG && INJECTED_CONFIG.MIXPANEL_KEY) {
|
||||
$analyticsProvider.virtualPageviews(true);
|
||||
}
|
||||
|
||||
// Configure sentry.
|
||||
if (CONFIG && CONFIG.SENTRY_PUBLIC_DSN) {
|
||||
if (INJECTED_CONFIG && INJECTED_CONFIG.SENTRY_PUBLIC_DSN) {
|
||||
$provide.decorator("$exceptionHandler", function($delegate) {
|
||||
return function(ex, cause) {
|
||||
$delegate(ex, cause);
|
||||
|
|
Reference in a new issue