fix(browser): restart on url change

This commit is contained in:
2026-07-06 18:29:51 +02:00
parent 05b62d1ffb
commit 122e0fb932
+2 -3
View File
@@ -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);