mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 00:23:19 +00:00
Increased requirejs timeout
set timeout when running in prod regardless of hostname
This commit is contained in:
parent
76dd663bae
commit
f606b58986
3 changed files with 9 additions and 7 deletions
|
@ -95,6 +95,7 @@ private string GetIndexText()
|
|||
text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower());
|
||||
text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant());
|
||||
text = text.Replace("URL_BASE", URL_BASE);
|
||||
text = text.Replace("PRODUCTION", RuntimeInfoBase.IsProduction.ToString().ToLowerInvariant());
|
||||
|
||||
_generatedContent = text;
|
||||
|
||||
|
|
|
@ -81,7 +81,8 @@
|
|||
Version : 'APP_VERSION',
|
||||
Branch : 'APP_BRANCH',
|
||||
Analytics : APP_ANALYTICS,
|
||||
UrlBase : 'URL_BASE'
|
||||
UrlBase : 'URL_BASE',
|
||||
Production : PRODUCTION
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
urlArgs: 'v=' + window.NzbDrone.Version
|
||||
});
|
||||
|
||||
if (window.location.hostname.toLowerCase() !== 'localhost') {
|
||||
if (window.NzbDrone.Production) {
|
||||
require.config({
|
||||
waitSeconds: 30
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue