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

1 line
276 B
JavaScript
Raw Normal View History

2017-01-27 16:07:14 -07: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()}});