pull/110/head
openbuilds-engineer 2019-06-06 21:21:36 +02:00
rodzic 0aec48abf7
commit 375f98066a
1 zmienionych plików z 5 dodań i 8 usunięć

Wyświetl plik

@ -2569,15 +2569,12 @@ function isJson(item) {
function startChrome() {
if (status.driver.operatingsystem == 'rpi') {
exec("chromium-browser --app=http://127.0.0.1:3000", function(error, stdout, stderr) {
console.log("stdout: " + stdout);
console.log("stderr: " + stderr);
if (error !== null) {
console.log("exec errror: " + error);
}
});
const {
spawn
} = require('child_process');
const chrome = spawn('chromium-browser', ['-app=http://127.0.0.1:3000']);
} else {
console.log('Not a rpi');
console.log('Not a Raspberry Pi. Please use Electron Instead');
}
}