mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07: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();
|
|
};
|
|
}); |