diff --git a/main/menu.js b/main/menu.js index 76f4cb06..c2025cb4 100644 --- a/main/menu.js +++ b/main/menu.js @@ -65,6 +65,11 @@ function toggleDevTools () { } } +function showWebTorrentWindow () { + windows.webtorrent.show() + windows.webtorrent.webContents.openDevTools({detach: true}) +} + function reloadWindow () { log('reloadWindow') if (windows.main) { @@ -255,6 +260,10 @@ function getAppMenuTemplate () { : 'Ctrl+Shift+I', click: toggleDevTools }, + { + label: 'Show WebTorrent Process', + click: showWebTorrentWindow + }, { type: 'separator' }, diff --git a/main/windows.js b/main/windows.js index 6adad9de..4b6d9678 100644 --- a/main/windows.js +++ b/main/windows.js @@ -49,14 +49,17 @@ function createAboutWindow () { function createWebTorrentHiddenWindow () { var win = windows.webtorrent = new electron.BrowserWindow({ - backgroundColor: '#ECECEC', + backgroundColor: '#282828', show: false, center: true, title: 'webtorrent-hidden-window', - width: 500, - height: 500, + useContentSize: true, + width: 368, + height: 388, minimizable: false, maximizable: false, + resizable: false, + fullscreenable: false, fullscreen: false, skipTaskbar: true }) diff --git a/renderer/webtorrent.html b/renderer/webtorrent.html index f03d1755..3a2abe95 100644 --- a/renderer/webtorrent.html +++ b/renderer/webtorrent.html @@ -1,3 +1,5 @@ - -
+