add tools page and embed rnode flasher

This commit is contained in:
liamcottle
2024-12-18 23:15:27 +13:00
parent 8cfb5449fd
commit bb62b3331f
17 changed files with 21590 additions and 3 deletions

View File

@@ -111,9 +111,10 @@ app.whenReady().then(async () => {
// open external links in default web browser instead of electron
mainWindow.webContents.setWindowOpenHandler(({ url }) => {
// open internal MeshChat urls starting with http://localhost in electron
// this is needed for pages such as call.html that open in a new window
if(url.startsWith("http://localhost")){
// we want to open call.html in a new electron window
// but all other target="_blank" links should open in the system web browser
// we don't want /rnode-flasher/index.html to open in electron, otherwise user can't select usb devices...
if(url.startsWith("http://localhost") && url.includes("/call.html")){
return {
action: "allow",
};