File size: 288 Bytes
7e4b742
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
navigator_hardwareConcurrency = """
const patchNavigator = (name, value) =>
    utils.replaceProperty(Object.getPrototypeOf(navigator), name, {
        get() {
            return value
        }
    })

patchNavigator('hardwareConcurrency', opts.navigator_hardware_concurrency || 4);
"""