mirror of
https://github.com/NicolasConstant/sengi
synced 2025-01-05 13:09:33 +01:00
added a way to reopen sengi page
This commit is contained in:
parent
a9ba1c6ba4
commit
9c8a1a829f
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user