diff --git a/index.js b/index.js index 96d38982..a88ee0a4 100644 --- a/index.js +++ b/index.js @@ -28,13 +28,15 @@ app.use( server.listen(8080, () => { console.log('The webserver is now running!'); - try { - console.log('Opening the app in the default browser...'); - open('http://localhost:8080'); - console.log('Done. Check if a browser window has opened'); - } catch (e) { - console.log('Failed. Open up http://localhost:8080 in your browser.'); - } + if (require('os').platform() !== 'android') { + try { + console.log('Opening the app in the default browser...'); + open('http://localhost:8080'); + console.log('Done. Check if a browser window has opened'); + } catch (e) { + console.log('Failed. Open up http://localhost:8080 in your browser.'); + } + } else console.log('Open up http://localhost:8080 in your browser.'); }); process.on('uncaughtException', (reason) => { diff --git a/public/index.html b/public/index.html index bc425e5d..fa5ad22a 100644 --- a/public/index.html +++ b/public/index.html @@ -72,7 +72,9 @@