mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Increased requirejs timeout
set timeout when running in prod regardless of hostname
This commit is contained in:
parent
76dd663bae
commit
f606b58986
@ -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;
|
||||
|
||||
|
@ -76,12 +76,13 @@
|
||||
<div id="errors"></div>
|
||||
<script type="text/javascript">
|
||||
window.NzbDrone = {
|
||||
ApiRoot : 'API_ROOT',
|
||||
ApiKey : 'API_KEY',
|
||||
Version : 'APP_VERSION',
|
||||
Branch : 'APP_BRANCH',
|
||||
Analytics : APP_ANALYTICS,
|
||||
UrlBase : 'URL_BASE'
|
||||
ApiRoot : 'API_ROOT',
|
||||
ApiKey : 'API_KEY',
|
||||
Version : 'APP_VERSION',
|
||||
Branch : 'APP_BRANCH',
|
||||
Analytics : APP_ANALYTICS,
|
||||
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 New Issue
Block a user