jellyfish-web/dashboard-ui/bower_components/emby-webcomponents/alert/nativealert.js

14 lines
381 B
JavaScript
Raw Normal View History

2018-10-23 01:05:09 +03:00
define([], function() {
"use strict";
function replaceAll(str, find, replace) {
return str.split(find).join(replace)
}
return function(options) {
"string" == typeof options && (options = {
text: options
});
var text = replaceAll(options.text || "", "<br/>", "\n");
return alert(text), Promise.resolve()
}
});