Last changes before game
This commit is contained in:
@@ -6,7 +6,7 @@ let browserOpen = false;
|
||||
async function openBrowser() {
|
||||
if(!browserOpen) {
|
||||
// const command = spawn("chromium-browser --display=:0 --noerrors --disable-session-crashed-bubble --disable-infobars --start-fullscreen http://localhost:3000 &")
|
||||
command = spawn('chromium-browser', ['--display=:0', '--incognito', '--noerrors', '--hide-crash-restore-bubble', '--disable-infobars', '--kiosk', 'http://localhost:3000']);
|
||||
command = spawn('sudo', ['-upi', 'chromium-browser', '--display=:0', '--incognito', '--noerrors', '--hide-crash-restore-bubble', '--disable-infobars', '--kiosk', 'http://localhost']);
|
||||
|
||||
command.stdout.on('data', data => {
|
||||
console.log("stdout: ", data.toString());
|
||||
@@ -28,4 +28,4 @@ async function killBrowser() {
|
||||
|
||||
module.exports = {
|
||||
openBrowser, killBrowser
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user