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

41 lines
1.0 KiB

'use strict';
define(
[
'app'
], function (App) {
return {
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});
}
};
});