1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/prompt/nativeprompt.js
Luke Pulverenti 8a6884abef minify
2017-01-27 18:07:14 -05:00

1 line
No EOL
349 B
JavaScript

define([],function(){"use strict";function replaceAll(str,find,replace){return str.split(find).join(replace)}return function(options){"string"==typeof options&&(options={label:"",text:options});var label=replaceAll(options.label||"","<br/>","\n"),result=prompt(label,options.text||"");return result?Promise.resolve(result):Promise.reject(result)}});