-
-
Save omisolaidowu/8d76a135b9895b05a877fcbc12888316 to your computer and use it in GitHub Desktop.
Patcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
// ... | |
// patch navigator.platform | |
await page.evaluateOnNewDocument(() => { | |
// redefine navigator.platform for macOS | |
Object.defineProperty(navigator, 'platform', { | |
value: 'MacIntel', | |
}); | |
}); | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment