Add Korean Japanese and English user interfaces
This commit is contained in:
@@ -57,6 +57,7 @@ try {
|
||||
const errors = [];
|
||||
async function page(width = 1280, ip = '8.8.4.4', country = 'KR') {
|
||||
const context = await browser.newContext({
|
||||
locale: 'ko-KR',
|
||||
viewport: { width, height: 900 },
|
||||
isMobile: width < 600,
|
||||
hasTouch: width < 600,
|
||||
@@ -67,6 +68,7 @@ try {
|
||||
'CF-Region': country === 'CN' ? 'Beijing' : 'Daejeon',
|
||||
},
|
||||
});
|
||||
await context.addInitScript(() => localStorage.setItem('hop-language', 'ko'));
|
||||
const page = await context.newPage();
|
||||
page.on('pageerror', (error) => errors.push(error.message));
|
||||
await page.goto(url);
|
||||
|
||||
Reference in New Issue
Block a user