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

65 lines
1.6 KiB

'use strict';
define(function () {
return {
12 years ago
show: function (options) {
if (!options.type) {
options.type = 'info';
}
12 years ago
if (options.hideAfter === undefined) {
switch (options.type) {
case 'info':
options.hideAfter = 5;
break;
case 'success':
options.hideAfter = 5;
break;
default :
12 years ago
options.hideAfter = 5;
}
}
return window.Messenger().post({
message : options.message,
type : options.type,
showCloseButton: true,
hideAfter : options.hideAfter,
id : options.id
});
},
12 years ago
monitor: function (options) {
if (!options.promise) {
throw 'promise is required';
}
if (!options.successMessage) {
throw 'success message is required';
}
if (!options.errorMessage) {
throw 'error message is required';
}
var self = this;
options.promise.done(function () {
self.show({message: options.successMessage});
});
options.promise.fail(function () {
self.show({message: options.errorMessage, type: 'error'});
});
return options.promise;
}
};
});