mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): Fix evaluateOnNewDocument sample syntax error (#2063)
This commit is contained in:
parent
2a84f9f343
commit
8578283e11
@ -864,7 +864,7 @@ An example of overriding the navigator.languages property before the page loads:
|
|||||||
Object.defineProperty(navigator, "languages", {
|
Object.defineProperty(navigator, "languages", {
|
||||||
get: function() {
|
get: function() {
|
||||||
return ["en-US", "en", "bn"];
|
return ["en-US", "en", "bn"];
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// In your puppeteer script, assuming the preload.js file is in same folder of our script
|
// In your puppeteer script, assuming the preload.js file is in same folder of our script
|
||||||
|
Loading…
Reference in New Issue
Block a user