|
|
@ -61,7 +61,7 @@ function Logger(minimumLogLevel) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Logger.prototype.cleanse = function(message) {
|
|
|
|
Logger.prototype.cleanse = function(message) {
|
|
|
|
const apikey = new RegExp(`access_token=${window.Radarr.apiKey}`, 'g');
|
|
|
|
const apikey = new RegExp(`access_token=${encodeURIComponent(window.Radarr.apiKey)}`, 'g');
|
|
|
|
return message.replace(apikey, 'access_token=(removed)');
|
|
|
|
return message.replace(apikey, 'access_token=(removed)');
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -105,7 +105,7 @@ class SignalRConnector extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
this.connection = new signalR.HubConnectionBuilder()
|
|
|
|
this.connection = new signalR.HubConnectionBuilder()
|
|
|
|
.configureLogging(new Logger(signalR.LogLevel.Information))
|
|
|
|
.configureLogging(new Logger(signalR.LogLevel.Information))
|
|
|
|
.withUrl(`${url}?access_token=${window.Radarr.apiKey}`)
|
|
|
|
.withUrl(`${url}?access_token=${encodeURIComponent(window.Radarr.apiKey)}`)
|
|
|
|
.withAutomaticReconnect({
|
|
|
|
.withAutomaticReconnect({
|
|
|
|
nextRetryDelayInMilliseconds: (retryContext) => {
|
|
|
|
nextRetryDelayInMilliseconds: (retryContext) => {
|
|
|
|
if (retryContext.elapsedMilliseconds > 180000) {
|
|
|
|
if (retryContext.elapsedMilliseconds > 180000) {
|
|
|
|