npm.io
1.0.3 • Published 4 years ago

electron-bottom-window

Licence
ISC
Version
1.0.3
Deps
3
Size
4 kB
Vulns
0
Weekly
0

electron-bottom-window

An Electron module that allows you to stick the browser window to the bottom of the z-index stack.

Installation

npm install electron-bottom-window

Usage

const { app, BrowserWindow } = require('electron')
const { stickToBottom } = require('electron-bottom-window');

function createWindow() {
    const mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
        ...
    });
    mainWindow.loadFile('index.html');

    // Stick window to bottom
    stickToBottom(mainWindow);
}

app.whenReady().then(() => {
	createWindow(); 
});

This module is based on this gist

Keywords