summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/contacts/resources/non-main-frame-select.html
blob: c64ecd067c82d050f989f1cbe005fe0b33bb9e96 (plain)
1
2
3
4
5
6
7
8
9
<script>
  'use strict';

  window.onload = function() {
    navigator.contacts.select(['name', 'email'], { multiple: true })
      .then(results => parent.postMessage({ errorMsg: '' }, '*'))
      .catch(exception => parent.postMessage({ errorMsg: exception.name }, '*'));
  }
</script>