mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
22 lines
415 B
JavaScript
22 lines
415 B
JavaScript
![]() |
define([], function () {
|
||
|
|
||
|
function replaceAll(str, find, replace) {
|
||
|
|
||
|
return str.split(find).join(replace);
|
||
|
}
|
||
|
|
||
|
return function (options) {
|
||
|
|
||
|
if (typeof options === 'string') {
|
||
|
options = {
|
||
|
text: options
|
||
|
};
|
||
|
}
|
||
|
|
||
|
var text = replaceAll(options.text || '', '<br/>', '\n');
|
||
|
|
||
|
alert(text);
|
||
|
|
||
|
return Promise.resolve();
|
||
|
};
|
||
|
});
|