Remove "Add Fake Airplay/Chromecast" menu items (#411)
This commit is contained in:
16
main/menu.js
16
main/menu.js
@@ -70,11 +70,6 @@ function showWebTorrentWindow () {
|
|||||||
windows.webtorrent.webContents.openDevTools({ detach: true })
|
windows.webtorrent.webContents.openDevTools({ detach: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
function addFakeDevice (device) {
|
|
||||||
log('addFakeDevice %s', device)
|
|
||||||
windows.main.send('addFakeDevice', device)
|
|
||||||
}
|
|
||||||
|
|
||||||
function onWindowShow () {
|
function onWindowShow () {
|
||||||
log('onWindowShow')
|
log('onWindowShow')
|
||||||
getMenuItem('Full Screen').enabled = true
|
getMenuItem('Full Screen').enabled = true
|
||||||
@@ -263,17 +258,6 @@ function getAppMenuTemplate () {
|
|||||||
? 'Alt+Command+P'
|
? 'Alt+Command+P'
|
||||||
: 'Ctrl+Shift+P',
|
: 'Ctrl+Shift+P',
|
||||||
click: showWebTorrentWindow
|
click: showWebTorrentWindow
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'separator'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Add Fake Airplay',
|
|
||||||
click: () => addFakeDevice('airplay')
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Add Fake Chromecast',
|
|
||||||
click: () => addFakeDevice('chromecast')
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ var cfg = require('application-config')('WebTorrent')
|
|||||||
var concat = require('concat-stream')
|
var concat = require('concat-stream')
|
||||||
var dragDrop = require('drag-drop')
|
var dragDrop = require('drag-drop')
|
||||||
var electron = require('electron')
|
var electron = require('electron')
|
||||||
var EventEmitter = require('events')
|
|
||||||
var fs = require('fs')
|
var fs = require('fs')
|
||||||
var mainLoop = require('main-loop')
|
var mainLoop = require('main-loop')
|
||||||
var path = require('path')
|
var path = require('path')
|
||||||
@@ -403,13 +402,6 @@ function setupIpc () {
|
|||||||
update()
|
update()
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcRenderer.on('addFakeDevice', function (e, device) {
|
|
||||||
var player = new EventEmitter()
|
|
||||||
player.play = (networkURL) => console.log(networkURL)
|
|
||||||
state.devices[device] = player
|
|
||||||
update()
|
|
||||||
})
|
|
||||||
|
|
||||||
ipcRenderer.on('wt-infohash', (e, ...args) => torrentInfoHash(...args))
|
ipcRenderer.on('wt-infohash', (e, ...args) => torrentInfoHash(...args))
|
||||||
ipcRenderer.on('wt-metadata', (e, ...args) => torrentMetadata(...args))
|
ipcRenderer.on('wt-metadata', (e, ...args) => torrentMetadata(...args))
|
||||||
ipcRenderer.on('wt-done', (e, ...args) => torrentDone(...args))
|
ipcRenderer.on('wt-done', (e, ...args) => torrentDone(...args))
|
||||||
|
|||||||
Reference in New Issue
Block a user