Remove Developer > Reload
It will leave the app in a bad state, now that we hae a separate WebTorrent process
This commit is contained in:
12
main/menu.js
12
main/menu.js
@@ -70,13 +70,6 @@ function showWebTorrentWindow () {
|
|||||||
windows.webtorrent.webContents.openDevTools({ detach: true })
|
windows.webtorrent.webContents.openDevTools({ detach: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
function reloadWindow () {
|
|
||||||
log('reloadWindow')
|
|
||||||
if (windows.main) {
|
|
||||||
windows.main.webContents.reloadIgnoringCache()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function addFakeDevice (device) {
|
function addFakeDevice (device) {
|
||||||
log('addFakeDevice %s', device)
|
log('addFakeDevice %s', device)
|
||||||
windows.main.send('addFakeDevice', device)
|
windows.main.send('addFakeDevice', device)
|
||||||
@@ -257,11 +250,6 @@ function getAppMenuTemplate () {
|
|||||||
{
|
{
|
||||||
label: 'Developer',
|
label: 'Developer',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
|
||||||
label: 'Reload',
|
|
||||||
accelerator: 'CmdOrCtrl+R',
|
|
||||||
click: reloadWindow
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Developer Tools',
|
label: 'Developer Tools',
|
||||||
accelerator: process.platform === 'darwin'
|
accelerator: process.platform === 'darwin'
|
||||||
|
|||||||
Reference in New Issue
Block a user