jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/alert/nativealert.js
Luke Pulverenti 3e161d7edb update alerts
2016-02-26 15:29:27 -05:00

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();
};
});