blob: fafe71ee0493ff10cf4a70faeaa9dca25f80fbe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<script>
'use strict';
window.onload = async function() {
let enabled = true;
try {
const observer = new PressureObserver(() => {});
await observer.observe("cpu");
observer.disconnect();
} catch (e) {
enabled = false;
}
parent.postMessage({ type: 'availability-result', enabled }, '*');
}
</script>
|