Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/035434468e2d8b89bfa12fac601c9a4074a5d635/UI/Config.js You should set ROOT_URL correctly, otherwise the web may not work correctly.
Readarr/UI/Config.js

41 lines
1.0 KiB

'use strict';
12 years ago
define(
[
'app'
], function (App) {
return {
12 years ago
Events: {
ConfigUpdatedEvent: 'ConfigUpdatedEvent'
},
Keys : {
DefaultQualityProfileId: 'DefaultQualityProfileId',
DefaultRootFolderId: 'DefaultRootFolderId'
},
GetValue: function (key, defaultValue) {
var storeValue = localStorage.getItem(key);
if (!storeValue) {
return defaultValue;
}
return storeValue.toString();
},
SetValue: function (key, value) {
console.log('Config: [{0}] => [{1}] '.format(key, value));
if (this.GetValue(key) === value.toString()) {
return;
}
localStorage.setItem(key, value);
App.vent.trigger(this.Events.ConfigUpdatedEvent, {key: key, value: value});
}
12 years ago
};
12 years ago
});