Skip to content
Permalink
Browse files

The `isVisible` isn't working with dwm on Linux---can't edit the address

bar at all.
  • Loading branch information...
kickscondor committed Jun 29, 2019
1 parent 111b637 commit 02d2fc790b156b2843f526c3b95cd620fa3747db
Showing with 1 addition and 9 deletions.
  1. +1 −9 app/background-process/ui/subwindows/location-bar.js
@@ -96,14 +96,6 @@ export function hide (parentWindow) {
export async function runCmd (parentWindow, cmd, opts) {
var win = get(parentWindow)
if (win) {
if (!win.isVisible()) {
if (cmd === 'set-value') {
// show first
show(parentWindow, opts)
} else {
return
}
}
return win.webContents.executeJavaScript(`command("${cmd}", ${JSON.stringify(opts)})`)
}
}
@@ -145,4 +137,4 @@ rpc.exportAPI('background-process-location-bar', locationBarRPCManifest, {

function getParentWindow (sender) {
return BrowserWindow.fromWebContents(sender).getParentWindow()
}
}

0 comments on commit 02d2fc7

Please sign in to comment.
You can’t perform that action at this time.