summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/permissions-policy-idle-detection-worker.html
blob: 5bcc3980390bbb4cc223998d0af5118d943a69f8 (plain)
1
2
3
4
5
6
7
8
9
10
<script>
'use strict';

let worker = new Worker('permissions-policy-idle-detection-worker.js');

worker.onmessage = event => {
  window.parent.postMessage(event.data, '*');
};
worker.postMessage({ type: 'ready' });
</script>