in www/notification.js [83:99]
prompt: function (message, resultCallback, title, buttonLabels, defaultText) {
var _message = typeof message === 'string' ? message : JSON.stringify(message);
var _title = typeof title === 'string' ? title : 'Prompt';
var _buttonLabels = buttonLabels || ['OK', 'Cancel'];
// Strings are deprecated!
if (typeof _buttonLabels === 'string') {
console.log(
'Notification.prompt(string, function, string, string) is deprecated. Use Notification.confirm(string, function, string, array).'
);
}
_buttonLabels = convertButtonLabels(_buttonLabels);
var _defaultText = defaultText || '';
exec(resultCallback, null, 'Notification', 'prompt', [_message, _title, _buttonLabels, _defaultText]);
},