Skip to content

Commit 0c900f0

Browse files
Allow to use remote control from the same machine
This is irrelevant for ordinary users since they do not invoke the Remote Control on the same machine. The advantage for developers is that they can use MagicMirror and Remote Control on the same machine.
1 parent 5a8439c commit 0c900f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ module.exports = NodeHelper.create(Object.assign({
822822
try {
823823
let electron = require("electron").BrowserWindow;
824824
if (!electron) { throw "Could not get Electron window instance."; }
825-
let win = electron.getFocusedWindow();
825+
let win = electron.getAllWindows()[0]
826826
switch (query.action) {
827827
case "MINIMIZE":
828828
win.minimize();

0 commit comments

Comments
 (0)