jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/alert/nativealert.js
2016-10-02 02:46:32 -04:00

23 lines
433 B
JavaScript

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