Increased requirejs timeout

set timeout when running in prod regardless of hostname
pull/2/head
Mark McDowall 10 years ago
parent 76dd663bae
commit f606b58986

@ -95,6 +95,7 @@ namespace NzbDrone.Api.Frontend.Mappers
text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower()); text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower());
text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant()); text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant());
text = text.Replace("URL_BASE", URL_BASE); text = text.Replace("URL_BASE", URL_BASE);
text = text.Replace("PRODUCTION", RuntimeInfoBase.IsProduction.ToString().ToLowerInvariant());
_generatedContent = text; _generatedContent = text;

@ -81,7 +81,8 @@
Version : 'APP_VERSION', Version : 'APP_VERSION',
Branch : 'APP_BRANCH', Branch : 'APP_BRANCH',
Analytics : APP_ANALYTICS, Analytics : APP_ANALYTICS,
UrlBase : 'URL_BASE' UrlBase : 'URL_BASE',
Production : PRODUCTION
}; };
</script> </script>

@ -2,7 +2,7 @@
urlArgs: 'v=' + window.NzbDrone.Version urlArgs: 'v=' + window.NzbDrone.Version
}); });
if (window.location.hostname.toLowerCase() !== 'localhost') { if (window.NzbDrone.Production) {
require.config({ require.config({
waitSeconds: 30 waitSeconds: 30
}); });

Loading…
Cancel
Save