Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/plugins/default-browser-emulator/injected-scripts/navigator.deviceMemory.ts
1029 views
1
if (
2
'WorkerGlobalScope' in self ||
3
self.location.protocol === 'https:' ||
4
'deviceMemory' in navigator
5
) {
6
// @ts-ignore
7
proxyGetter(navigator, 'deviceMemory', () => args.memory, true);
8
}
9
10