examples: replace let with const (#403)

This commit is contained in:
Vse Mozhet Byt 2017-08-20 22:38:10 +03:00 committed by Eric Bidelman
parent 8c245eef4e
commit 7796ca50ee
2 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,8 @@
const puppeteer = require('puppeteer');
function sniffDetector() {
let userAgent = window.navigator.userAgent;
let platform = window.navigator.platform;
const userAgent = window.navigator.userAgent;
const platform = window.navigator.platform;
window.navigator.__defineGetter__('userAgent', function() {
window.navigator.sniffed = true;

View File

@ -20,7 +20,7 @@ const devices = require('puppeteer/DeviceDescriptors');
(async() => {
const browser = await puppeteer.launch();
let page = await browser.newPage();
const page = await browser.newPage();
await page.emulate(devices['iPhone 6']);
await page.goto('https://www.nytimes.com/');
await page.screenshot({path: 'full.png', fullPage: true});