non-main-frame-select.html (288B)
1 <script> 2 'use strict'; 3 4 window.onload = function() { 5 navigator.contacts.select(['name', 'email'], { multiple: true }) 6 .then(results => parent.postMessage({ errorMsg: '' }, '*')) 7 .catch(exception => parent.postMessage({ errorMsg: exception.name }, '*')); 8 } 9 </script>