
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@akiflow/electron-panel-window
Advanced tools
Create Electron BrowserWindow's that act like Panels
This fork of electron-panel-window. It works on macOS Ventura (tested). It works with Electron 21.x. (tested).
There are few caveats.
titleBarStyle
should have the value 'customButtonsOnHover'
This will show two buttons on top left (to close and maximize the window). You can hide them by setting:
closable: false
maximizable: false
Beware that you may need some additional logic if you actually need to close the window, as win.close()
won't work at this point. (you can check the test to see how we did this)
This looks no longer necessary in version 3.
setVisibleOnAllWorkspaces(true)
cannot be used on these windowsApparently it causes everything to crash.
There are usually some electron crash when quitting an app with a panel window. Usually they can be fixed by:
makeKeyWindow
on another window)makeWindow
)We have noticed less/no crashes if steps 2-5 are execture after a setTimout like:
win.hide()
setTimeout(()=>{
electronPanelWindow.makeKeyWindow(otherWin)
electronPanelWindow.makeWindow(win)
win.close()
app.quit()
})
Removed win and linux support as it was empty in the first place.
You may want to include the package dynamically:
const electronPanelWindow = process.platform === 'darwin' ? require('electron-panel-window') : undefined
Feel free to open an issue, and report other "workarounds" to keep this working.
Install
npm install @akiflow/electron-panel-window
require
const electronPanelWindow = process.platform === 'darwin' ? require('@akiflow/electron-panel-window') : undefined
makeKeyWindow(win)
focus the window without activating the applicationmakePanel(win)
transform the given window in a panelmakeWindow(win)
transform the given panel in a window (useful before quitting)Something may be useful, something may be outdated
You can find it here: https://github.com/goabstract/electron-panel-window/
FAQs
Create Electron BrowserWindow's that act like Panels
We found that @akiflow/electron-panel-window demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.