A script to restart your browser on a certain url when it crash. Only Chrome supported for now.
npm i
To build the app in electron, we use electron packager. Here is an example of command to build the app:
electron-packager . BrowserRestart --platform=win32 --arch=x64 --version=0.36.1
It will build the app for windows 64 bits, with version 0.36.1 of electron. Find more infos to know how to build for your wanted system in electron packager docs.
After you've built the app, run it, and fill the form with your infos.
port
: the port on wich the app should be runningstartURL
: the url the app must look to know when browser crash.autostart
: if true, the app will, at launch, open the startURL in your browserhttpsPort
: the port on wich the secure app should be runningcertPath
: the path to the certsbrowser args
: the arguments to launch browser withTo know when to restart the browser, we need to know when the website is down. To do so, you need to load a script on your website, which is: http://localhost:YOUR_PORT/restart.js
, where YOUR_PORT
is the port you have define in the config view of the app, generally 3000
.