added a way to reopen sengi page

This commit is contained in:
Nicolas Constant 2019-07-07 18:00:04 -04:00
parent a9ba1c6ba4
commit 9c8a1a829f
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 20 additions and 2 deletions

View File

@ -19,12 +19,20 @@ function createWindow() {
});
var server = http.createServer(requestHandler).listen(9527);
win.loadURL("http://localhost:9527");
const sengiUrl = "http://localhost:9527";
win.loadURL(sengiUrl);
const template = [
{
label: "View",
submenu: [
{
label: "Return on Sengi",
click() {
win.loadURL(sengiUrl);
}
},
{ type: "separator" },
{ role: "reload" },
{ role: "forcereload" },
{ type: "separator" },
@ -75,7 +83,17 @@ function createWindow() {
},
{
label: "View",
submenu: [{ role: "reload" }, { role: "forcereload" }]
submenu: [
{
label: "Return on Sengi",
click() {
win.loadURL(sengiUrl);
}
},
{ type: "separator" },
{ role: "reload" },
{ role: "forcereload" }
]
},
{
role: "help",