fix(browser): restart on url change
This commit is contained in:
+2
-3
@@ -221,9 +221,8 @@ app.post('/url', async (req, res) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we're in kiosk mode, --app flag is used so changing URL requires restart to stay full screen
|
// If gpu or kiosk settings changed, we must restart the browser
|
||||||
// If we're not in kiosk mode, we can just navigate the page
|
if (needRestart) {
|
||||||
if (needRestart || isKiosk) {
|
|
||||||
await startChromium();
|
await startChromium();
|
||||||
} else if (page) {
|
} else if (page) {
|
||||||
await page.goto(currentUrl);
|
await page.goto(currentUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user