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 we're not in kiosk mode, we can just navigate the page
|
||||
if (needRestart || isKiosk) {
|
||||
// If gpu or kiosk settings changed, we must restart the browser
|
||||
if (needRestart) {
|
||||
await startChromium();
|
||||
} else if (page) {
|
||||
await page.goto(currentUrl);
|
||||
|
||||
Reference in New Issue
Block a user