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

new IdleDetector().start().then(() => {
  window.parent.postMessage({ type: 'availability-result', enabled: true }, '*');
}, error => {
  window.parent.postMessage({ type: 'availability-result', enabled: false }, '*');
});

</script>