Add Korean Japanese and English user interfaces
This commit is contained in:
@@ -31,7 +31,10 @@ try {
|
||||
? { executablePath: process.env.HOP_BROWSER_EXECUTABLE }
|
||||
: {}),
|
||||
});
|
||||
const context = await browser.newContext({ viewport: { width: 1280, height: 1000 } });
|
||||
const context = await browser.newContext({
|
||||
locale: 'ko-KR',
|
||||
viewport: { width: 1280, height: 1000 },
|
||||
});
|
||||
const page = await context.newPage(),
|
||||
errors = [];
|
||||
page.on('pageerror', (error) => errors.push(error.message));
|
||||
|
||||
Reference in New Issue
Block a user