Nell'esempio del polyfill c'e' questo script di esempio:
spawn(function*() {
//statements before showing a modal dialog
var returnValue = yield window.showModalDialog( url [, arguments, options] );
//statements after closing a modal dialog
});
ma non saprei come inglobarlo nella mia funzione.
Qua il link:
https://github.com/niutech/showModalDialog

Rispondi quotando
